/* 
    ULTRA MODERN DARK AUTH STYLES 
    Inspired by Lerna/Modern UI
*/

:root {
    --brand-lime: #d9ff00; /* Vibrant Lime/Yellow from image */
    --bg-dark: #000000;
    --card-bg: #000000;
    --input-bg: #1a1a1a;
    --input-border: #222222;
    --text-main: #ffffff;
    --text-muted: #888888;
}

.auth-page {
    background: var(--bg-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-subtitle a {
    color: var(--brand-lime);
    text-decoration: none;
    font-weight: 500;
}

/* Form Styling */
.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #444;
    background: #222;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Checkbox & Forgot */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.remember-me input {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1.5px solid #444;
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.remember-me input:checked {
    background: var(--brand-lime);
    border-color: var(--brand-lime);
}

.remember-me input:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 14px;
    left: 4px;
    top: 0;
}

.forgot-link {
    color: var(--text-muted);
    text-decoration: none;
}

/* Success Button */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--brand-lime);
    color: #000;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 10px;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #444;
}

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

.auth-divider span {
    padding: 0 15px;
    font-size: 0.8rem;
    text-transform: lowercase;
}

.btn-social-long {
    width: 100%;
    height: 56px;
    background: #ffffff;
    color: #000;
    border: none;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin-bottom: 20px;
}

.btn-social-long:hover {
    background: #f1f1f1;
}

.btn-social-long:active {
    transform: scale(0.98);
}

.btn-social-long i {
    font-size: 1.2rem;
}

/* Image Gallery Strip (Horizontal Scroll on Mobile) */
.auth-gallery {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.auth-gallery::-webkit-scrollbar {
    display: none; /* Hide scrollbar for a cleaner look */
}

.gallery-item {
    width: 65px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0; /* Prevents images from squeezing */
    opacity: 0.8;
}

.gallery-item:nth-child(odd) { transform: translateY(8px); }
.gallery-item:nth-child(even) { transform: translateY(-8px); }

/* Footer */
.auth-footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--brand-lime);
    text-decoration: none;
    font-weight: 500;
}

.terms-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 40px;
}

.terms-text a {
    color: var(--brand-lime);
    text-decoration: none;
}

#error-msg {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-bottom: 15px;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 10px;
    display: none;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .auth-container {
        padding: 15px; /* Minimal container padding */
    }
    .auth-card {
        padding: 0;
        margin-top: -20px; /* Slight lift to center more vertically */
    }
    .auth-header {
        margin-bottom: 25px; /* Shorter header gap */
    }
    .auth-title {
        font-size: 1.6rem; /* Slightly smaller title */
    }
    .auth-form {
        margin-bottom: 20px;
    }
    .form-control {
        padding: 14px 18px; /* Slightly thinner inputs */
    }
    .btn-primary, .btn-social-long {
        padding: 14px; /* Thinner buttons */
        height: 50px;
    }
    .auth-gallery {
        margin: 20px 0; /* Reduced gallery gap */
    }
    .gallery-item {
        width: 60px;
        height: 80px;
    }
}
