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

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* ===== Header ===== */
.top-header {
    background: #fff;
    border-bottom: 1px solid #dddfe2;
    padding: 10px 0;
}

.top-header .container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.fb-logo-text {
    color: #1877f2;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -1px;
}

/* ===== Login Page ===== */
.login-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.login-left {
    max-width: 480px;
    padding-top: 20px;
}

.login-left .fb-logo-text {
    font-size: 56px;
}

.login-left p {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 16px;
    color: #1c1e21;
}

.login-right {
    width: 396px;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    margin-bottom: 12px;
}

.btn-blue {
    display: block;
    width: 100%;
    background: #1877f2;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    cursor: pointer;
    text-align: center;
}

.btn-blue:hover {
    background: #166fe5;
}

.forgot-link {
    display: block;
    text-align: center;
    color: #1877f2;
    font-size: 14px;
    margin: 16px 0;
}

hr.divider {
    border: none;
    border-top: 1px solid #dadde1;
    margin: 20px 0;
}

.btn-green {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: #42b72a;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: center;
}

.btn-green:hover {
    background: #36a420;
}

.create-account-text {
    text-align: center;
    font-size: 13px;
    margin-top: 16px;
    color: #1c1e21;
}

/* ===== Register Page ===== */
.register-wrap {
    max-width: 432px;
    margin: 20px auto;
    padding: 0 20px;
}

.register-box {
    background: #fff;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 16px;
}

.register-box h1 {
    text-align: center;
    font-size: 27px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dddfe2;
}

.register-box h2 {
    text-align: center;
    font-size: 15px;
    color: #606770;
    font-weight: normal;
    margin-top: 12px;
}

.name-row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.register-box input[type="text"],
.register-box input[type="password"],
.register-box input[type="email"] {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #ccd0d5;
    border-radius: 5px;
    margin-top: 12px;
}

.field-hint {
    font-size: 12px;
    color: #90949c;
    margin-top: 4px;
}

.dob-label {
    font-size: 12px;
    color: #606770;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dob-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.dob-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccd0d5;
    border-radius: 5px;
    background: #fff;
}

.gender-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.gender-box {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccd0d5;
    border-radius: 5px;
    padding: 8px 10px;
}

.terms-text {
    font-size: 11px;
    color: #777;
    margin-top: 12px;
    line-height: 1.4;
}

.terms-text a {
    color: #385898;
}

.signup-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.login-link-wrap {
    text-align: center;
    margin-top: 16px;
}

.login-link-wrap a {
    color: #1877f2;
    font-weight: bold;
}

/* ===== Thanks Page ===== */
.thanks-wrap {
    max-width: 500px;
    margin: 60px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
}

.thanks-wrap h1 {
    color: #1877f2;
    margin-bottom: 16px;
}

.thanks-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: right;
}

.thanks-wrap td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.error-box {
    background: #fde2e1;
    color: #c0392b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
}

.note-box {
    background: #fff8e1;
    color: #7a5c00;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin: 20px auto 0;
    max-width: 980px;
    text-align: center;
}

/* ===== Mobile Login Page (matches Facebook mobile login screen) ===== */
body:has(.mlogin-page) {
    background: #fff;
}

.mlogin-page {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 12px 24px 36px;
}

.edu-note {
    background: #fff8e1;
    color: #7a5c00;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    margin-bottom: 4px;
}

.mlogin-topbar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 6px;
}

.mlogin-lang {
    color: #444950;
    font-size: 15px;
}

.mlogin-caret {
    font-size: 12px;
}

.mlogin-close {
    position: absolute;
    right: 0;
    top: 14px;
    font-size: 30px;
    line-height: 1;
    color: #050505;
}

.mlogin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 20px;
}

.mlogin-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 30px 0 40px;
}

.mlogin-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mlogin-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mlogin-input {
    width: 100%;
    height: 54px;
    border: 1px solid #ccd0d5;
    border-radius: 27px;
    padding: 0 20px;
    font-size: 16px;
    text-align: right;
    outline: none;
    font-family: inherit;
}

.mlogin-input:focus {
    border-color: #1877f2;
}

.mlogin-btn-primary {
    width: 100%;
    height: 52px;
    background: #0866ff;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 27px;
    cursor: pointer;
    margin-top: 4px;
    font-family: inherit;
}

.mlogin-btn-primary:hover {
    background: #0656d6;
}

.mlogin-forgot {
    display: block;
    text-align: center;
    color: #050505;
    font-size: 15px;
    margin-top: 22px;
}

.mlogin-btn-outline {
    width: 100%;
    height: 52px;
    background: #fff;
    color: #0866ff;
    font-size: 17px;
    font-weight: bold;
    border: 1.5px solid #0866ff;
    border-radius: 27px;
    cursor: pointer;
    margin-top: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mlogin-btn-outline:hover {
    background: #f0f6ff;
}

.mlogin-footer {
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    color: #050505;
    font-weight: bold;
    font-size: 20px;
}

.mlogin-footer .infinity {
    color: #0866ff;
    font-size: 24px;
    font-weight: bold;
}
