/* =========================================
   LOGIN PAGE STYLES (login.css)
   ========================================= */

/* Center the login card on the screen */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem;
    min-height: calc(100vh - 90px);
    position: relative;
    overflow: hidden; 
}

/* Background Graphic styling (Synced with home page) */
.hero-graphic {
    position: absolute;
    right: -250px; 
    bottom: -10%;
    z-index: 0; 
    opacity: 0.9;
}

.side-graphic {
    width: 800px; 
    height: auto;
}

/* Main white card container */
.auth-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    color: #333;
    z-index: 2; 
    position: relative;
}

/* Utility Class for JS Toggle */
.hidden {
    display: none !important;
}

/* Form layout and elements */
.auth-toggle {
    display: flex;
    background-color: #f3f4f6;
    padding: 0.3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    width: fit-content;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.3rem;
}

.auth-header p {
    font-size: 0.9rem;
    color: #6b7280;
}

.social-login {
    display: flex;
    margin-bottom: 1.5rem;
    width: 100%;
}

.social-btn {
    width: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease;
}

.social-btn:hover {
    background: #f9fafb;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 10px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.forgot-link {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem; 
    border: none;
    background-color: #f3f4f6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.input-wrapper input:focus {
    box-shadow: 0 0 0 2px #0d47a1; 
}

.submit-btn {
    background-color: #0b0f19; 
    color: #ffffff;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background-color: #1f2937;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-footer a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}