/* ===== Shared Auth Pages (Login, Register, ForgotPassword) ===== */

/* Auth page layout */
.auth-page {
    display: flex;
    min-height: 100vh;
    background-color: #0d0d0f;
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    font-size: 1.6rem;
    color: #8a8a9a;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-align: center;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #8a8a9a;
    text-align: center;
    margin-bottom: 2rem;
}

/* Input styling */
.auth-input {
    width: 100%;
    padding: 14px 16px;
    background-color: #1a1a1f;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #6a6a7a;
}

.auth-input:focus {
    border-color: #4a9eff;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-group .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6a6a7a;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
}

/* Links */
.auth-link {
    color: #4a9eff;
    font-size: 0.85rem;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
    color: #6ab4ff;
}

.forgot-link {
    display: block;
    text-align: right;
    color: #4a9eff;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #6ab4ff;
}

/* Primary button */
.auth-btn {
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    color: #0d0d0f;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.auth-btn:hover {
    background-color: #e8e8e8;
}

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #6a6a7a;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2a2a35;
}

.auth-divider span {
    padding: 0 1rem;
}

/* Social buttons */
.social-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background-color: #1a1a1f;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    border-color: #4a4a55;
    background-color: #222228;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

/* Bottom links */
.auth-bottom-link {
    text-align: center;
    color: #8a8a9a;
    font-size: 0.9rem;
}

.auth-bottom-link a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 0.25rem;
}

.auth-bottom-link a:hover {
    color: #4a9eff;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #5a5a6a;
}

.auth-footer a {
    color: #4a9eff;
    text-decoration: underline;
}

/* Right panel - hero section (desktop only) */
.auth-right {
    flex: 1;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #111115;
    border-left: 1px solid #1a1a22;
    padding: 3rem;
}

.hero-content {
    text-align: center;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Error and validation messages */
.auth-error {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.validation-message {
    color: #ff6b7a;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== Responsive ===== */
@media (min-width: 992px) {
    .auth-right {
        display: flex;
    }
}

@media (max-width: 991px) {
    .auth-left {
        padding: 1.5rem;
    }

    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 1.3rem;
    }

    .social-buttons {
        gap: 0.5rem;
    }

    .social-btn {
        padding: 10px;
    }
}
