/* ==========================================================================
   FACEBOOK HOME / LOGIN 100% EXACT REPLICA
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    color: #1c1e21;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   MAIN SPLIT-SCREEN LAYOUT
   ========================================================================== */

.main-body {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: calc(100vh - 56px);
    min-height: calc(100vh - 56px);
    position: relative;
    flex-shrink: 0;
}

/* ==========================================================================
   LEFT SECTION (HERO + COLLAGE + FOOTER - 63% WIDTH)
   ========================================================================== */

.left-pane {
    flex: 0 0 66%;
    width: 66%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px 40px 48px;
}

/* Official Facebook Logo */
.brand-logo {
    position: absolute;
    top: 28px;
    left: 48px;
    z-index: 30;
    width: 50px;
    height: 50px;
    display: inline-block;
}

.fb-official-logo {
    width: 50px;
    height: 50px;
    display: block;
}

/* Big Headline at Bottom Left */
.hero-headline {
    position: relative;
    z-index: 25;
    margin-top: 160px;
    margin-bottom: 16px;
}

.hero-headline h1 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1c1e21;
}

.hero-headline .line {
    display: block;
    white-space: nowrap;
}

.blue-brand {
    color: #0866ff;
    display: inline;
}

.dot-black {
    color: #1c1e21;
    display: inline;
}

/* ==========================================================================
   OFFICIAL FACEBOOK HERO GRAPHIC COLLAGE (ULTRA HIGH-RES)
   ========================================================================== */

.hero-graphic-container {
    position: absolute;
    top: 42%;
    left: 63%;
    transform: translate(-50%, -50%);
    width: 780px;
    max-width: 820px;
    pointer-events: none;
    z-index: 10;
}

.fb-hero-graphic {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ==========================================================================
   FOOTER (FULL PAGE WIDTH — BELOW BOTH COLUMNS)
   ========================================================================== */

.page-footer {
    width: 100%;
    border-top: 0.06cm solid #e8e8e8;
    padding: 0 48px 36px 340px;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    position: relative;
    z-index: 25;
    background-color: #ffffff;
}

.footer-links-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 8px;
    list-style: none;
}

.languages-row {
    height: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    column-gap: 32px;
    row-gap: 6px;
    margin: 0 0 4px 0;
}

.languages-row .footer-link {
    font-size: 16px;
    color: #737373;
}

.footer-link {
    font-size: 14px;
    color: #737373;
    text-decoration: none;
    line-height: 1.7;
    transition: text-decoration 0.15s ease;
}

.footer-link:hover {
    text-decoration: underline;
}

.active-lang {
    color: #737373;
}

.more-lang {
    color: #737373;
}

/* ==========================================================================
   VERTICAL DIVIDER LINE (SEPARATING LEFT AND RIGHT TO THE BOTTOM)
   ========================================================================== */

.column-divider {
    width: 0.05cm;
    background-color: #e8e8e8;
    align-self: stretch;
    flex-shrink: 0;
}

/* ==========================================================================
   RIGHT SECTION (LOGIN FORM - 37% WIDTH)
   ========================================================================== */

.right-pane {
    flex: 0 0 34%;
    width: 34%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 40px 32px;
}

.login-card-container {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
}

.login-card-title {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #1c1e21;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    text-align: left;
}

/* Form inputs */
.login-card-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.form-input-wrapper {
    position: relative;
    width: 100%;
}

.login-input-field {
    width: 100%;
    height: 56px;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    color: #1c1e21;
    background-color: #ffffff;
    border: 1px solid #ccd0d5;
    border-radius: 14px;
    outline: none;
    box-shadow: none;
}

.login-input-field::placeholder {
    color: #65676b;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
}

.login-input-field:focus,
.login-input-field:active {
    border: 1px solid #ccd0d5;
    outline: none;
    box-shadow: none;
}

/* Log in button */
.login-submit-button {
    width: 100%;
    height: 50px;
    background-color: #0866ff;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 4px;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.login-submit-button:hover {
    background-color: #075ce6;
}

.login-submit-button:active {
    transform: scale(0.99);
}

/* Forgotten password link */
.forgot-link-wrapper {
    text-align: center;
    margin: 20px 0 32px 0;
}

.forgot-password-link {
    color: #1c1e21;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Create new account button */
.create-button-wrapper {
    width: 100%;
}

.create-account-pill {
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    border: 1.5px solid #0866ff;
    color: #0866ff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.create-account-pill:hover {
    background-color: rgba(8, 102, 255, 0.04);
}

.create-account-pill:active {
    background-color: rgba(8, 102, 255, 0.08);
    transform: scale(0.99);
}

/* Meta branding */
.meta-brand-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
}

.meta-official-logo {
    width: 76px;
    height: auto;
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

/* ==========================================================================
   MOBILE-SPECIFIC ELEMENTS (HIDDEN ON DESKTOP)
   ========================================================================== */

.mobile-app-banner,
.mobile-download-bar,
.mobile-lang-indicator,
.mobile-center-logo,
.mobile-sub-footer {
    display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1140px) {
    .main-body {
        height: auto;
        min-height: auto;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
    }

    .left-pane {
        width: 100%;
        max-width: 600px;
        min-height: auto;
        padding: 20px 0;
        align-items: center;
        text-align: center;
    }

    .brand-logo {
        position: static;
        margin-bottom: 20px;
    }

    .hero-graphic-container {
        position: static;
        transform: none;
        width: 100%;
        max-width: 500px;
        margin: 20px 0;
    }

    .hero-headline {
        margin-top: 0;
        text-align: center;
    }

    .hero-headline h1 {
        font-size: 38px;
    }

    .column-divider {
        display: none;
    }

    .right-pane {
        width: 100%;
        max-width: 500px;
        padding: 20px 0;
    }

    .page-footer {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   EXACT 100% MOBILE REPLICA (MAX-WIDTH: 600PX)
   ========================================================================== */

@media (max-width: 600px) {
    html, body {
        background-color: #ffffff;
    }

    .page-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* 1. Mobile Top Smart App Banner */
    .mobile-app-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        background-color: #ffffff;
        border-bottom: 1px solid #f0f2f5;
    }

    .mobile-app-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-app-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: block;
    }

    .mobile-app-title {
        font-size: 14px;
        font-weight: 700;
        color: #050505;
        line-height: 1.2;
    }

    .mobile-app-sub {
        font-size: 12px;
        color: #65676b;
        line-height: 1.2;
        margin-top: 2px;
    }

    .mobile-app-open-btn {
        background-color: #0064e0;
        color: #ffffff;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        font-size: 13.5px;
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 5px 16px;
        border-radius: 16px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-font-smoothing: antialiased;
        transition: background-color 0.15s ease;
    }

    /* 2. Mobile Download Bar */
    .mobile-download-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f2f5;
        color: #0064e0;
        font-size: 13.5px;
        font-weight: 500;
    }

    .download-icon {
        flex-shrink: 0;
    }

    /* 3. Language Indicator */
    .mobile-lang-indicator {
        display: block;
        text-align: center;
        font-size: 13.5px;
        color: #65676b;
        margin: 20px 0 24px 0;
    }

    /* Main Container & Left Pane */
    .main-body {
        height: auto;
        min-height: auto;
        padding: 0 16px 20px 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .left-pane,
    .column-divider,
    .page-footer {
        display: none !important;
    }

    .right-pane {
        width: 100%;
        max-width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .login-card-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* 4. Centered Circular Facebook Logo */
    .mobile-center-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 12px;
        margin-bottom: calc(32px + 2cm);
    }

    .mobile-fb-circle {
        width: 62px;
        height: 62px;
        display: block;
    }

    /* Hide desktop title */
    .login-card-title {
        display: none;
    }

    /* Form Fields */
    .login-card-form {
        gap: 14px;
    }

    .login-input-field {
        height: 58px;
        font-size: 16.5px;
        padding: 16px 18px;
        border-radius: 16px;
        border: 1px solid #ccd0d5;
        background-color: #ffffff;
    }

    .login-submit-button {
        height: 50px;
        background-color: #0064e0;
        font-size: 16px;
        font-weight: 600;
        border-radius: 25px;
        margin-top: 6px;
    }

    .forgot-link-wrapper {
        margin: 22px 0 36px 0;
    }

    .forgot-password-link {
        font-size: 15px;
        font-weight: 600;
        color: #4b4f56;
    }

    /* Create Account Pill Button */
    .create-button-wrapper {
        margin-top: auto;
        padding-top: 20px;
        margin-bottom: 24px;
    }

    .create-account-pill {
        height: 44px;
        font-size: 15px;
        font-weight: 600;
        color: #0064e0;
        border: 1.5px solid #0064e0;
        border-radius: 22px;
        background-color: #ffffff;
    }

    .meta-brand-center {
        margin-top: 0;
        margin-bottom: 16px;
    }

    .meta-official-logo {
        width: 64px;
    }

    /* Mobile Sub Footer Links */
    .mobile-sub-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding-bottom: 12px;
    }

    .mobile-footer-link {
        font-size: 11.5px;
        color: #65676b;
        text-decoration: none;
    }
}
