@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    color: #07163e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #eaf0fa;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-main {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(370px, 30%) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 3.2vw 2% 2vw 3%;
    background: #f7f9fd;
    border-radius: 0 0 50% 12% / 0 0 10% 12%;
}

.login-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 44%;
    width: 36%;
    height: 100%;
    border: 7vw solid #e6ecf5;
    border-radius: 50%;
    transform: rotate(35deg);
    pointer-events: none;
}

.login-main.recovery-main { grid-template-columns: minmax(0, 500px); justify-content: center; }

.login-hero { position: relative; align-self: stretch; min-height: 720px; margin-left: 25px;}
/*.hero-logo { position: relative; z-index: 1; width: min(390px, 42%); height: auto; }*/
.hero-copy { position: relative; z-index: 2; width: min(440px, 48%); margin-top: 3rem; }
.hero-copy h1 { margin: 0; font-size: clamp(1.7rem, 2.25vw, 2.5rem); line-height: 1.28; letter-spacing: -.04em; font-weight: 400; }
.hero-copy h1 strong { font-weight: 800; }
.hero-intro { max-width: 380px; margin: 1.3rem 0 2.8rem; color: #263b63; font-size: clamp(.95rem, 1.15vw, 1.15rem); line-height: 1.48; }
.feature-list { display: grid; gap: 1.3rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 1.2rem; }
.feature-icon { flex: 0 0 60px; height: 60px; display: grid; place-items: center; border-radius: 14px; font-size: 1.8rem; }
.feature-blue { color: #145cff; background: #dceaff; }
.feature-green { color: #00a65c; background: #d5f3e2; }
.feature-orange { color: #f18a00; background: #ffead3; }
.feature-list h2 { margin: .25rem 0 .3rem; font-size: 1rem; letter-spacing: -.03em; }
.feature-list p { max-width: 220px; margin: 0; color: #31466c; font-size: .9rem; line-height: 1.5; }
.hero-couple { position: absolute; z-index: 1; bottom: -2vw; right: -1rem; width: 74%; height: auto; }

.login-panel {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: clamp(1.5rem, 2.8vw, 3rem);
    border: 1px solid #d6e0f1;
    border-radius: 16px;
    background: #fbfcfe;
    box-shadow: 0 8px 35px rgba(80, 110, 170, .08);
}
.panel-header { text-align: center; }
.panel-header img { display: block; width: min(100%, 380px); height: auto; margin: 0 auto 1.3rem; }
.panel-header h1, .panel-header h2 { margin: 0; font-size: clamp(1.7rem, 2.1vw, 2.4rem); letter-spacing: -.04em; }
.panel-header p { margin: .45rem 0 1.8rem; font-size: 1.15rem; }
.login-form { display: grid; gap: 1rem; }
.input-wrap { display: flex; align-items: center; min-height: 56px; padding: 0 1rem; border: 1px solid #cbd6e9; border-radius: 11px; color: #536b94; background: #fff; }
.input-wrap:focus-within { outline: 2px solid #3764e8; outline-offset: 2px; }
.input-wrap > i { flex: none; font-size: 1.25rem; }
.input-wrap input { width: 100%; min-width: 0; padding: 1rem; border: 0; outline: 0; color: #07163e; background: transparent; font: inherit; }
.input-wrap input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #07163e; }
.input-wrap input::placeholder { color: #8192b2; opacity: 1; }
.password-toggle { padding: .3rem; border: 0; background: none; color: #60769e; cursor: pointer; font-size: 1.25rem; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .83rem; }
.remember { display: flex; align-items: center; gap: .5rem; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: #2351ef; }
a { color: #1456ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.login-submit { min-height: 56px; margin-top: .5rem; border: 0; border-radius: 10px; background: #2451ed; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.login-submit:hover { background: #1944d8; }
.separator { display: flex; align-items: center; gap: .9rem; margin: 1.8rem 0 1.4rem; }
.separator::before, .separator::after { content: ''; height: 1px; flex: 1; background: #d6deed; }
.register { margin: 0; text-align: center; font-size: .86rem; }
.register a { margin-left: .4rem; font-weight: 700; }
.login-alert { padding: .75rem; margin-bottom: 1rem; border-radius: 8px; font-size: .9rem; }
.login-alert ul { margin: 0; padding-left: 1.2rem; }
.login-alert.success { color: #135c37; background: #d9f4e3; }
.login-alert.danger { color: #8e2525; background: #ffe4e4; }
.login-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 3%; color: #31466c; font-size: .75rem; }
.login-footer nav { display: flex; flex-wrap: wrap; gap: .8rem; }
.login-footer nav a { color: #31466c; }
.security { display: flex; align-items: center; gap: .8rem; }
.security i { font-size: 1.6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.signup-consent { display: flex; align-items: flex-start; gap: .6rem; color: #31466c; font-size: .83rem; line-height: 1.5; }
.signup-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: #2351ef; }
.signup-privacy { margin: 0; text-align: center; color: #31466c; font-size: .83rem; line-height: 1.5; }
.signup-shell .separator { margin: 1.3rem 0; }

@media (max-width: 1100px) {
    .login-main { grid-template-columns: minmax(340px, 40%) minmax(0, 1fr); }
    .login-hero { min-height: 0; }
    .hero-copy { width: 100%; }
    .hero-couple { position: relative; display: block; bottom: auto; right: auto; width: 100%; margin-top: 1.5rem; }
}

@media (max-width: 760px) {
    .login-main { display: flex; flex-direction: column; padding: 1.5rem 1rem 2rem; border-radius: 0 0 30px 30px; }
    .login-main::before { display: none; }
    .login-hero { min-height: 0; width: 100%; }
    .hero-logo { width: min(260px, 75%); }
    .hero-copy { width: 100%; margin-top: 1.5rem; }
    .hero-intro { margin-bottom: 1.5rem; }
    .feature-list { gap: .8rem; }
    .feature-icon { flex-basis: 48px; height: 48px; font-size: 1.4rem; }
    .feature-list p { max-width: none; }
    .hero-couple { position: relative; display: block; bottom: auto; right: auto; width: min(100%, 500px); margin: 1.5rem auto -1rem; opacity: 1; }
    .login-panel { max-width: 500px; }
    .signup-shell .login-hero { margin-left: 0; }
    .login-footer { justify-content: center; text-align: center; }
    .login-footer nav { justify-content: center; }
}

@media (max-width: 390px) {
    .login-options { align-items: flex-start; flex-direction: column; }
}
