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

body {
    font-family: 'DM Sans', sans-serif;
    background: #f5f6fa;
    color: #1a1d2e;
    min-height: 100vh;
    position: relative;
}

body,
html {
    overflow: scroll;

    &::-webkit-scrollbar {
        display: none;
    }

    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(63, 81, 181, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(63, 81, 181, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(92, 107, 192, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── SCREENS ── */
.screen {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screen.active {
    display: flex;
}

#screen2 {
    background: transparent;
}

/* ── LOGIN HEADER ── */
.login-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-bottom: 1px solid rgba(63, 81, 181, 0.12);
    background: rgb(255, 255, 255);
    backdrop-filter: blur(8px);
    z-index: 10;
    height: 64px !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.logo-icon img {
    width: 35px !important;
    height: 35px !important;
    cursor: pointer;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.15rem !important;
    text-decoration: none;
    justify-content: center;
    color: #3f51b5;
    text-transform: capitalize !important;
    cursor: pointer;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: #1a1d2e;
    border: 1px solid rgba(63, 81, 181, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    background: transparent;
}

.lang-btn:hover {
    background: #eef0fb;
}

.btn-outline-sm {
    font-size: 1rem;
    padding: 6px 16px;
    border: 1px solid rgba(63, 81, 181, 0.3);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: #3f51b5;
}

.btn-outline-sm:hover {
    background: #eef0fb;
}

/* ── MAIN WRAPPER ── */
.main {
    width: 100%;
    max-width: 500px;
    padding: 100px 24px 40px;
    text-align: center;
}

/* ── LOGO in screens ── */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 5px;
}

/* ── TAGLINE ── */
.tagline {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.2;
    margin-bottom: 32px;
    font-weight: 400;
    text-align: left;
}

/* ── INPUTS ── */
.input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid rgba(63, 81, 181, 0.15);
    border-radius: 8px;
    background: #ffffff;
    color: #1a1d2e;
    margin-bottom: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.input-field:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.input-field::placeholder {
    color: #b0b5c9;
}

.pw-wrap {
    position: relative;
    margin-bottom: 10px;
}

.pw-wrap .input-field {
    margin-bottom: 0;
    padding-right: 44px;
}

.pw-eye {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #b0b5c9;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.pw-eye:hover {
    color: #3f51b5;
}

/* ── CHECKBOX ── */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin: 6px 0 14px;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3f51b5;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

.checkbox-label a {
    color: #3f51b5;
    text-decoration: underline;
}

/* ── SEE OPTIONS ── */
.see-options-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #3f51b5;
    border: none;
    background: none;
    cursor: pointer;
    border-top: 1px solid rgba(63, 81, 181, 0.12);
}

.options-panel {
    text-align: left;
    border-top: 1px solid rgba(63, 81, 181, 0.12);
    padding-top: 16px;
    margin-bottom: 16px;
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.toggle-label {
    font-size: 13px;
    color: #6b7280;
    flex: 1;
    line-height: 1.55;
}

.toggle-label a {
    color: #3f51b5;
    text-decoration: underline;
}

.toggle {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(63, 81, 181, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s;
}

.toggle-track::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform .2s;
}

.toggle input:checked+.toggle-track {
    background: #3f51b5;
}

.toggle input:checked+.toggle-track::before {
    transform: translateX(16px);
}

.options-note {
    font-size: 12px;
    color: #b0b5c9;
}

/* ── BUTTONS ── */
.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    background: #3f51b5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background .2s;
    box-shadow: 0 4px 14px rgba(63, 81, 181, 0.3);
}

.btn-primary:hover {
    background: #5c6bc0;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-social {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 400;
    background: #fff;
    color: #1a1d2e;
    border: 1px solid rgba(63, 81, 181, 0.15);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s;
}

.btn-social:hover {
    background: #eef0fb;
    border-color: rgba(63, 81, 181, 0.3);
}

.or-divider {
    font-size: 13px;
    color: #b0b5c9;
    margin: 4px 0 10px;
}

/* ── RECAPTCHA ── */
.recaptcha-note {
    font-size: 12px;
    color: #b0b5c9;
    line-height: 1.6;
}

.recaptcha-note a {
    color: #6b7280;
    text-decoration: underline;
}

/* ── LOGIN CARD ── */
.login-card {
    width: 100%;
    max-width: 500px;
    padding: 100px 40px;
}

.login-card h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1d2e;
    margin-bottom: 6px;
}

.login-card .sub {
    font-size: 1.2rem;
    margin-bottom: 28px;
    line-height: 1.2;
    color: rgb(101, 93, 103);
}

.email-label,
.password-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1d2e;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
    text-align: left;
}

.req {
    color: #d44;
    font-size: 13px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── PASSWORD STRENGTH ── */
.pw-rules {
    text-align: left;
    margin: 4px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pw-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e53935;
    transition: color .2s;
}

.pw-rule.ok {
    color: #22c55e;
}

.pw-rule svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pw-strength-label {
    font-size: 13px;
    margin-bottom: 2px;
}

.pw-rules { display: none; }

.pw-strength-label span {
    font-weight: 600;
}

.strength-weak   { color: #e53935; }
.strength-medium { color: #f59e0b; }
.strength-good   { color: #22c55e; }


.sso-link {
    font-size: 1rem;
    color: #3f51b5;
    text-decoration: underline;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-top: 10px;
    background: none;
    border: none;
}

.hr-divider {
    border: none;
    border-top: 1px solid rgba(63, 81, 181, 0.12);
    margin: 24px 0 16px;
}

.signup-link {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
}

.signup-link a {
    color: #3f51b5;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

/* ── SVG ICONS ── */
.icon-globe {
    width: 14px;
    height: 14px;
}

.icon-eye {
    width: 18px;
    height: 18px;
}

.icon-g {
    width: 18px;
    height: 18px;
}

.icon-ms {
    width: 18px;
    height: 18px;
}

/* ── VALIDATION ── */
.input-field.error {
    border-color: #e53935;
    background: #fff5f5;
}

.field-error {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #e53935;
    margin: -6px 0 8px;
    text-align: left;
}

.field-error.visible {
    display: flex;
}

.field-error svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

footer a {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s, text-decoration 0.2s;
}
footer a:hover {
    text-decoration: underline !important;
    color: #3f51b5 !important;
}

/* ── ALERT ── */
.alert-container {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.alert-container .alert {
    max-width: 380px;
}

@media screen and (max-width: 600px) { 
    #header-right > span {
        display: none !important;
    }

    footer {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}