/* Auth Container - Light theme default (completely white) */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Dark theme auth container */
[data-theme="dark"] .auth-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

[data-theme="dark"] .auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Auth Card - Modern Glassmorphism */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: cardEnter 0.6s ease-out;
}

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

.auth-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Logo/Brand section */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand img {
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.auth-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

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

.input-group {
    position: relative;
}

.auth-form input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-form input:focus {
    outline: none;
    border-color: #2eb398;
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 179, 152, 0.1);
}

.auth-form input::placeholder {
    color: #999;
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
}

.input-group:focus-within .input-icon {
    color: #2eb398;
}

/* Terms checkbox styling */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.terms-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: #2eb398;
}

.terms-checkbox label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.terms-checkbox label a {
    color: #2eb398;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-checkbox label a:hover {
    color: #259b82;
    text-decoration: underline;
}

[data-theme="dark"] .terms-checkbox label {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .terms-checkbox label a {
    color: #2eb398;
}

[data-theme="dark"] .terms-checkbox label a:hover {
    color: #4fd1c5;
}

/* Form footer links */
.auth-form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-footer-separator {
    color: #ccc;
}

[data-theme="dark"] .auth-footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Submit Button */
.auth-form button[type="submit"] {
    padding: 1rem;
    background: linear-gradient(135deg, #2eb398 0%, #259b82 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.auth-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.auth-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Messages - Modern Alerts */
.error-message {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #c53030;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid #c53030;
    animation: shake 0.5s ease-in-out;
}

.success-message {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #276749;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid #38a169;
    animation: slideIn 0.4s ease-out;
}

.verified-message {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #276749;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid #38a169;
    animation: slideIn 0.4s ease-out;
}

.reset-message {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #276749;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid #38a169;
    animation: slideIn 0.4s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description text */
.auth-description {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.auth-footer p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: #2eb398;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2eb398;
    transition: width 0.3s ease;
}

.auth-footer a:hover {
    color: #0055aa;
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Form inline */
.form-inline {
    display: inline;
}

/* Two-column layout styles */
.auth-card-split {
    display: flex;
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

.auth-left {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

[data-theme="dark"] .auth-left {
    background: #ffffff;
}

.auth-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    text-align: center;
}

[data-theme="dark"] .auth-form-title {
    color: #1a1a2e;
}

.auth-right {
    flex: 1;
    background: #ffffff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-left: 1px solid #e0e0e0;
}

/* Dark theme auth right */
[data-theme="dark"] .auth-right {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-left: none;
}

/* Large brand logo on right side */
.auth-brand-large {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.auth-brand-large img {
    height: 140px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-brand-tagline {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.auth-brand-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

[data-theme="dark"] .auth-brand-tagline {
    color: white;
}

[data-theme="dark"] .auth-brand-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Header for mobile view */
.auth-header-mobile {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header-mobile img {
    height: 60px;
    margin-bottom: 0.75rem;
}

/* Action buttons and links */
.auth-actions {
    width: 100%;
    max-width: 280px;
    position: relative;
    z-index: 1;
    display: none;
}

.btn-auth-main {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2eb398 0%, #259b82 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 179, 152, 0.3);
}

.btn-auth-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 179, 152, 0.4);
}

.btn-auth-secondary {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: #2eb398;
    border: 2px solid #2eb398;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth-secondary:hover {
    background: rgba(46, 179, 152, 0.1);
    border-color: #259b82;
    color: #259b82;
}

[data-theme="dark"] .btn-auth-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .btn-auth-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.btn-full {
    display: block;
}

.auth-links {
    text-align: center;
}

.auth-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #2eb398;
}

[data-theme="dark"] .auth-link {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .auth-link:hover {
    color: white;
}

.auth-separator {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-separator span {
    background: #ffffff;
    padding: 0 1rem;
    color: #666;
    font-size: 0.85rem;
    position: relative;
}

[data-theme="dark"] .auth-separator::before {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .auth-separator span {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-card-split {
        flex-direction: column;
        max-width: 420px;
    }

    .auth-left {
        padding: 2rem 1.5rem;
        order: 2;
        background: rgba(255, 255, 255, 0.98);
    }

    .auth-form-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .auth-right {
        padding: 2rem 1.5rem;
        order: 1;
        background: #ffffff;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
    }

    [data-theme="dark"] .auth-right {
        background: linear-gradient(135deg, #2eb398 0%, #259b82 100%);
        border-bottom: none;
    }

    .auth-brand-large {
        margin-bottom: 1.5rem;
    }

    .auth-brand-large img {
        height: 80px;
    }

    .auth-brand-tagline {
        font-size: 1.4rem;
    }

    .auth-header-mobile {
        display: block;
    }

    .auth-header-mobile img {
        height: 50px;
    }

    .btn-full {
        display: block;
        margin-top: 1rem;
    }

    .auth-actions {
        display: block;
    }

    .auth-actions .btn-auth-main {
        display: none;
    }

    .auth-separator span {
        background: #ffffff;
    }

    [data-theme="dark"] .auth-separator span {
        background: linear-gradient(135deg, #2eb398 0%, #259b82 100%);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    .auth-brand img {
        height: 50px;
    }
}
