:root {
    --ark-primary: #44C8F5;
    --ark-dark: #000000;
    --ark-primary-dark: #2BA6D1;
    --ark-light: #E8F8FD;
}

body.auth-page {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* top align instead of center */
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-y: auto; /* allow vertical scroll */
    overflow-x: hidden;
    padding: 20px 0; /* optional spacing for top/bottom */
}

/* body.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(68, 200, 245, 0.1) 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.8; }
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(68, 200, 245, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(68, 200, 245, 0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(68, 200, 245, 0.4));
}

.auth-logo h1 {
    color: var(--ark-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-logo p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.auth-form-group {
    margin-bottom: 25px;
}

.auth-form-group label {
    display: block;
    color: var(--ark-dark);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.auth-form-group .input-wrapper {
    position: relative;
}

.auth-form-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.auth-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.auth-input:focus {
    outline: none;
    border-color: var(--ark-primary);
    box-shadow: 0 0 0 4px rgba(68, 200, 245, 0.1);
}

.auth-input.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--ark-primary);
}

.auth-checkbox label {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--ark-primary);
    color: var(--ark-dark);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    background: var(--ark-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(68, 200, 245, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links a {
    color: var(--ark-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--ark-primary-dark);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--ark-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.auth-alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.auth-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert.info {
    background: var(--ark-light);
    color: #004085;
    border: 1px solid var(--ark-primary);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .auth-logo h1 {
        font-size: 1.6rem;
    }
    
    .auth-logo img {
        height: 60px;
    }
}

/* Loading Animation */
.auth-btn .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: var(--ark-dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--ark-primary);
}
