/* ===================================
   AUTHENTICATION PAGES (Login & Signup)
   =================================== */

/* Animated Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(15, 157, 102, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 157, 102, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Holographic overlay effects */
.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(15, 157, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(15, 157, 102, 0.08) 0%, transparent 50%);
    animation: holographicShift 15s ease-in-out infinite;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 6rem;
}

/* Auth Card */
.auth-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(15, 157, 102, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(15, 157, 102, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardFadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 210%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(15, 157, 102, 0.1), transparent);
    animation: cardRotate 10s linear infinite;
    z-index: -1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f9f9f9, #e9e9e9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.auth-subtitle {
    color: #e9e9e9;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Social Login */
.social-login {
    margin: 1.5rem 0;
}

.social-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: rgba(233, 233, 233, 0.6);
    font-size: 0.875rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(233, 233, 233, 0.2);
}

.social-divider::before {
    margin-right: 1rem;
}

.social-divider::after {
    margin-left: 1rem;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Links */
.auth-link {
    color: #0f9d66;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #10b981;
    text-shadow: 0 0 10px rgba(15, 157, 102, 0.5);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(233, 233, 233, 0.1);
}

.forgot-password {
    text-align: center;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }

    .main-container {
        padding: 1rem;
        padding-top: 5rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-primary: #0f9d66;
    --green-accent: #10b981;
    --white: #f9f9f9;
    --gray-light: #e9e9e9;
    --gray-dark: #2F343F;
    --black: #0a0a0a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #f9f9f9;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animated Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(15, 157, 102, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 157, 102, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Holographic overlay effects */
.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(15, 157, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(15, 157, 102, 0.08) 0%, transparent 50%);
    animation: holographicShift 15s ease-in-out infinite;
}

@keyframes holographicShift {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 157, 102, 0.2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #e9e9e9;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #0f9d66;
    border-color: rgba(15, 157, 102, 0.3);
    background: rgba(15, 157, 102, 0.05);
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 6rem;
}

/* Auth Card */
.auth-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(15, 157, 102, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(15, 157, 102, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardFadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 210%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(15, 157, 102, 0.1), transparent);
    animation: cardRotate 10s linear infinite;
    z-index: -1;
}

@keyframes cardRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f9f9f9, #e9e9e9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(15, 157, 102, 0.3));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(15, 157, 102, 0.5));
    }
}

.auth-subtitle {
    color: #e9e9e9;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.form-label {
    color: #e9e9e9;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input {
    background: rgba(249, 249, 249, 0.05);
    border: 1px solid rgba(233, 233, 233, 0.2);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #f9f9f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(233, 233, 233, 0.5);
}

.form-input:focus {
    border-color: #0f9d66;
    box-shadow: 0 0 0 3px rgba(15, 157, 102, 0.1),
        0 0 20px rgba(15, 157, 102, 0.2);
    background: rgba(249, 249, 249, 0.08);
    transform: translateY(-1px);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox {
    width: 18px;
    height: 18px;
    accent-color: #0f9d66;
}

.checkbox-label {
    color: #e9e9e9;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #0f9d66, #10b981);
    color: white;
    box-shadow: 0 4px 20px rgba(15, 157, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 157, 102, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

/* Social Login */
.social-login {
    margin: 1.5rem 0;
}

.social-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: rgba(233, 233, 233, 0.6);
    font-size: 0.875rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(233, 233, 233, 0.2);
}

.social-divider::before {
    margin-right: 1rem;
}

.social-divider::after {
    margin-left: 1rem;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(249, 249, 249, 0.05);
    border: 1px solid rgba(233, 233, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e9e9e9;
    font-weight: 600;
}

.social-btn:hover {
    border-color: #0f9d66;
    background: rgba(15, 157, 102, 0.1);
    transform: translateY(-2px);
}

/* Links */
.auth-link {
    color: #0f9d66;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #10b981;
    text-shadow: 0 0 10px rgba(15, 157, 102, 0.5);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(233, 233, 233, 0.1);
}

.forgot-password {
    text-align: center;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }

    .main-container {
        padding: 1rem;
        padding-top: 5rem;
    }
}