/* Modern Authentication Pages Styling */

:root {
    --primary-gold: #d1b40c;
    --gold-light: #ecca79;
    --gold-dark: #b58d2b;
    --bg-overlay: rgba(18, 18, 18, 0.85);
    --card-bg: rgba(200, 178, 53, 0.12);
    --input-bg: rgba(255, 255, 255, 0.95);
    --text-light: #ffffff;
    --shadow-gold: rgba(231, 196, 115, 0.4);
}

/* Page Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;

}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(209, 180, 12, 0.1) 0%, rgba(181, 141, 43, 0.2) 100%);
    z-index: 1;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
}

.auth-container-wide {
    max-width: 680px;
}

/* Card Styling */
.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 0 60px var(--shadow-gold),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 
                0 0 80px var(--shadow-gold),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(209, 180, 12, 0.3));
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-title {
    background: linear-gradient(135deg, #f5e188 0%, #d1b40c 50%, #b58d2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 400;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.auth-form-control {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    color: #1a1a1a;
    background: var(--input-bg);
    border: 2px solid rgba(209, 180, 12, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.auth-form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(209, 180, 12, 0.1);
    transform: translateY(-2px);
}

.auth-form-control::placeholder {
    color: rgba(26, 26, 26, 0.5);
}

/* Select Dropdown */
.auth-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Buttons */
.auth-btn {
    width: 100%;
    height: 52px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #d1b40c 0%, #ecca79 50%, #d19e55 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(209, 180, 12, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(209, 180, 12, 0.5);
    background: linear-gradient(135deg, #ecca79 0%, #d1b40c 50%, #b58d2b 100%);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(209, 180, 12, 0.5);
    margin-top: 12px;
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-gold);
}

/* Captcha */
.auth-captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-captcha-box {
    flex: 1;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 2px solid rgba(209, 180, 12, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #00ff2d;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 45, 0.5);
}

.auth-captcha-refresh {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(209, 180, 12, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-captcha-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-gold);
    transform: rotate(180deg);
}

.auth-captcha-refresh img {
    width: 28px;
    height: 28px;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--gold-light);
}

.auth-link-primary {
    color: var(--gold-light);
    font-weight: 600;
}

.auth-link-primary:hover {
    color: #ffffff;
}

/* Row Spacing */
.auth-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.auth-col {
    flex: 1;
}

/* Password Toggle */
.auth-password-wrapper {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(26, 26, 26, 0.6);
    transition: color 0.3s ease;
}

.auth-password-toggle:hover {
    color: var(--primary-gold);
}

/* Back Link */
.auth-back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.auth-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 26px;
    }
    
    .auth-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-container {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Spinner Overlay */
.auth-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(209, 180, 12, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
