/* ============================================
   MockBee - Log In Page Styles
   Theme: Vintage Parchment / falling Blocks
   ============================================ */

.login-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stacked layout */
    align-items: center;
    justify-content: center;
    background-color: #E9E4E2;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    gap: 35px; /* Space between welcome and card */
}

/* ---- Falling Blocks Animation ---- */
.bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(140, 140, 140, 0.25); /* Darkened Gray */
    bottom: -160px;
    animation: square 18s infinite; /* Increased falling speed */
    transition-timing-function: linear;
}

.bg-bubbles li:nth-child(1) { left: 10%; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 80px; height: 80px; animation-delay: 2s; animation-duration: 17s; }
.bg-bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-duration: 22s; background-color: rgba(135, 135, 135, 0.35); }
.bg-bubbles li:nth-child(5) { left: 70%; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 120px; height: 120px; animation-delay: 3s; background-color: rgba(140, 140, 140, 0.15); }
.bg-bubbles li:nth-child(7) { left: 32%; width: 160px; height: 160px; animation-delay: 7s; }
.bg-bubbles li:nth-child(8) { left: 55%; width: 20px; height: 20px; animation-delay: 15s; animation-duration: 40s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 10px; height: 10px; animation-delay: 2s; animation-duration: 40s; background-color: rgba(140, 140, 140, 0.35); }
.bg-bubbles li:nth-child(10) { left: 90%; width: 160px; height: 160px; animation-delay: 11s; }
.bg-bubbles li:nth-child(11) { left: 15%; width: 50px; height: 50px; animation-delay: 1s; animation-duration: 20s; }
.bg-bubbles li:nth-child(12) { left: 65%; width: 30px; height: 30px; animation-delay: 5s; animation-duration: 15s; }
.bg-bubbles li:nth-child(13) { left: 45%; width: 100px; height: 100px; animation-delay: 8s; animation-duration: 25s; }
.bg-bubbles li:nth-child(14) { left: 5%; width: 15px; height: 15px; animation-delay: 12s; animation-duration: 35s; }
.bg-bubbles li:nth-child(15) { left: 75%; width: 45px; height: 45px; animation-delay: 3s; animation-duration: 18s; }
.bg-bubbles li:nth-child(16) { left: 37%; width: 130px; height: 130px; animation-delay: 14s; animation-duration: 30s; }
.bg-bubbles li:nth-child(17) { left: 50%; width: 25px; height: 25px; animation-delay: 9s; animation-duration: 22s; }
.bg-bubbles li:nth-child(18) { left: 85%; width: 70px; height: 70px; animation-delay: 6s; animation-duration: 26s; }
.bg-bubbles li:nth-child(19) { left: 22%; width: 35px; height: 35px; animation-delay: 10s; animation-duration: 20s; }
.bg-bubbles li:nth-child(20) { left: 95%; width: 90px; height: 90px; animation-delay: 17s; animation-duration: 45s; }

.login-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E9E4E2;
    position: relative;
    overflow: hidden;
    padding: 20px;
    gap: 30px; /* Space between text and card */
}

/* ---- Welcome Minimal Styling ---- */
.welcome-minimal {
    text-align: center;
    z-index: 5;
    animation: fadeInDown 0.6s ease-out;
}

.welcome-minimal__title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: #1A1A1A;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-minimal__subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #666;
    max-width: 480px; /* Slight increase for better flow */
    margin: 0 auto; /* Perfect centering */
    padding-left: 10px; /* Subtle visual nudge requested by user */
    line-height: 1.5;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Login Card Styling - Compacted ---- */
.login-card {
    position: relative;
    z-index: 5;
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    padding: 35px 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(216, 196, 182, 0.25);
    animation: fadeInUp 0.6s ease-out;
}

.login-card__title {
    font-family: var(--font-heading);
    font-size: 1.8rem; /* Reduced size */
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes square {
    0% {
        transform: translateY(-1100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(1100px) rotate(600deg);
        opacity: 0;
    }
}

/* Form Spacing Cleanups */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Tighter gaps */
}

.form-group {
    text-align: left;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    font-family: var(--font-body);
    padding: 12px 18px;
    border: 1.5px solid #F0ECEB;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1A1A1A;
    transition: all 0.3s ease;
    background: #fdfcfb;
}

/* 1. Remove Blue Background (Autofill & Focus) */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus, 
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px #fdfcfb inset !important;
    -webkit-text-fill-color: #1A1A1A !important;
}

.form-input:focus {
    outline: none;
    border-color: #1A1A1A;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(216, 196, 182, 0.2);
}

/* 2. Password Group Styling */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 15px;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #1A1A1A;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 20px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
}

.forgot-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #FF7675; /* Light Red hover per request */
    text-decoration: underline;
}

.btn-submit {
    background: #1A1A1A;
    color: #ffffff;
    border: 2px solid #1A1A1A;
    padding: 15px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background: #E9E4E2; /* Theme cream hover per request */
    color: #1A1A1A;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Modal Overlay Animation Logic */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#resetEmailInput {
    padding: 14px 20px;
    border: 1.8px solid #E9E4E2;
    border-radius: 12px;
    font-size: 1rem;
}

.btn-primary {
    background-color: #1A1A1A;
    color: #fff;
    border: 2px solid #1A1A1A;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #E9E4E2;
    color: #1A1A1A;
}

.auth-redirect {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #888;
}

.auth-redirect a {
    color: #555;
    text-decoration: none;
    font-weight: 700;
}

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

/* Social Sign In Styles - Compacting */
.social-signin-wrap {
    margin-top: 15px; /* Reduced from 25px */
    padding-top: 15px; /* Reduced from 20px */
    border-top: 1px solid #F0ECEB;
}

.social-signin-label {
    display: block;
    font-size: 0.8rem; /* Smaller label */
    color: #999;
    margin-bottom: 10px; /* Reduced margin */
    font-weight: 500;
}

.social-icons-group {
    display: flex;
    justify-content: center;
    gap: 15px; /* Tighter gap */
}

.social-icon {
    font-size: 1.15rem; /* Smaller icons from 1.4rem */
    color: #555;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* No underline */
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
}

.social-icon.google { color: #DB4437; }
.social-icon.facebook { color: #4267B2; }
.social-icon.linkedin { color: #0077b5; }
.social-icon.twitter { color: #1DA1F2; }

/* Global Link Cleanups */
.auth-redirect a, .form-link, .forgot-link {
    text-decoration: none !important; /* Force no underline */
}

.auth-redirect a:hover, .form-link:hover, .forgot-link:hover {
    text-decoration: underline !important;
}

/* Navbar compatibility */
.navbar {
    background: transparent !important;
}