﻿/* Authentication Pages Styles */

/* Main section container */
.login-auth-section,
.register-auth-section,
.activation-auth-section {
    min-height: calc(100vh - 80px); /* Account for navbar height */
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    padding: 8rem 0 3rem 0; /* Extra top padding to clear navbar */
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

    .login-auth-section::before,
    .register-auth-section::before,
    .activation-auth-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
        animation: pulse 15s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Ensure container content is above background */
.login-auth-section .container,
.register-auth-section .container,
.activation-auth-section .container {
    position: relative;
    z-index: 1;
}

/* Individual auth cards */
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 3.5rem;
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

    .auth-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover), var(--accent-primary));
        background-size: 200% 100%;
        animation: shimmer 3s linear infinite;
    }

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.auth-card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25);
}

/* Header section */
.auth-header {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

    .auth-tab.active {
        color: var(--accent-primary);
    }

        .auth-tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--accent-primary);
        }

    .auth-tab:hover:not(.active) {
        color: var(--text-primary);
    }

/* Logo styling */
.auth-logo {
    width: 20rem;
    height:6rem;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form elements */
.auth-form {
    /*display: flex;
    flex-direction: column;
    gap: 1.25rem;*/
}

.form-group {
    margin-bottom: 1rem;
}

.form-input, .form-control {
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-input:focus, .form-control:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
        background: var(--bg-primary);
        color: var(--text-muted);
    }

    .form-input::placeholder, .form-control::placeholder {
        color: var(--text-muted);
    }

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: var(--accent-primary);
    }

/* Links */
.form-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-end;
}

    .form-link:hover {
        color: var(--accent-primary);
    }

/* Checkbox styling */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}
.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

    .checkbox-label a {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: 600;
    }

        .checkbox-label a:hover {
            text-decoration: underline;
        }

/* Buttons */
.btn-auth-primary {
    padding: 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
    justify-content: center;
    border: 2px solid var(--F, #D4AF37);
    background: var(--G, #B8941F);
    box-shadow: 0 0 10px 8px rgba(0, 0, 0, 0.25) inset;
    color: var(--W, #FFF);
    text-shadow: 0 0 5px #000;
    font-family: Cinzel;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.1rem;
}

    .btn-auth-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 ease;
    }

    .btn-auth-primary:hover::before {
        left: 100%;
    }

    .btn-auth-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    }

    .btn-auth-primary:active {
        transform: translateY(0);
    }

.btn-auth-secondary {
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    justify-content: center;
    text-decoration: auto;
    color: var(--foreground);
    text-shadow: 0 0 5px #000;
    font-family: Cinzel;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.1rem;
    display: block;
}

    .btn-auth-secondary:hover {
        background: var(--G, #B8941F);
        color: var(--W, #FFF);
        transform: translateY(-2px);
        box-shadow: 0 0 10px 8px rgba(0, 0, 0, 0.25) inset;
    }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-color);
    }

/* Footer text */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer-text {
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.auth-footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

    .auth-footer-link:hover {
        text-decoration: underline;
    }

/* Activation page specific */
.activation-content {
    
}

.activation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.activation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.activation-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* reCAPTCHA styling */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0;
}

.g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

/* Validation messages */
.validation-message {
    color: var(--destructive);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

    .validation-message::before {
        content: '⚠';
    }

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .login-auth-section,
    .register-auth-section,
    .activation-auth-section {
        padding: 5rem 0 2rem 0;
        min-height: calc(100vh - 60px);
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-logo {
        width: 150px;
    }

    .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .login-auth-section,
    .register-auth-section,
    .activation-auth-section {
        padding: 4.5rem 0 1.5rem 0;
    }

    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .form-input,
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}
