/* Auth Container */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Branding Section */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 60%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-logo .logo-icon {
    font-size: 40px;
}

.brand-logo .logo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-branding h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.auth-branding p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 2.5rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 24px;
}

.feature-item span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

/* Form Section */
.auth-form-container {
    flex: 1;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.auth-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.auth-form input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.auth-form input.input-error {
    border-color: #f56565;
}

.auth-form .error-message {
    font-size: 13px;
    color: #f56565;
}

.auth-form .error-alert {
    padding: 12px 16px;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 12px;
    color: #f56565;
    font-size: 14px;
    text-align: center;
}

.btn-full {
    width: 100%;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    background: #1a1a3e;
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Alternate Auth */
.auth-alternate {
    text-align: center;
}

.auth-alternate p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0 0 1rem;
}

.forgot-password-link {
    text-align: right;
    margin-top: -0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Loading Spinner for Auth */
.auth-container .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-wrapper {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-branding {
        padding: 2rem;
    }

    .auth-branding h1 {
        font-size: 28px;
    }

    .brand-features {
        display: none;
    }

    .auth-form-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-branding,
    .auth-form-container {
        padding: 1.5rem;
    }

    .auth-header h2 {
        font-size: 24px;
    }
}

.admin-auth-btn,
.auth-container .btn-primary,
.auth-container .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-auth-btn:hover,
.auth-container .btn-primary:hover,
.auth-container .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    filter: brightness(1.1);
}

.admin-success-banner {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 25px;
    text-align: center;
}