.login-page {
    background: #f9fafb;
    overflow: hidden;
}

.login-page .container {
    max-width: none;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.login-page .alert {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 10;
    width: calc(100% - 32px);
    max-width: 404px;
    transform: translateX(-50%);
}

/* screen layout */

.login-screen {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 500px);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    height: 100vh;
    min-height: 0;
    padding: 60px clamp(32px, 8vw, 180px) 60px 80px;
    background: #f9fafb;
    overflow: hidden;
}

/* brand */

.login-brand {
    position: absolute;
    top: 32px;
    left: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-brand span:last-child {
    display: flex;
    gap: 0;
    font-size: 16px;
}

.login-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #eaf7ee;
    border: 1.5px solid #249447;
    border-radius: 8px;
}

.login-brand svg,
.login-input svg,
.login-security svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-brand-icon svg {
    width: 20px;
    height: 20px;
    color: #249447;
}

/* left copy */

.login-copy {
    position: relative;
    z-index: 2;
}

.login-copy h1 {
    margin: 0 0 20px;
    max-width: 540px;
    font-size: 44px;
    line-height: 1.2;
    color: #111827;
}

.login-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

/* decorative circles */

.login-circle {
    position: absolute;
    background: #249447;
    border-radius: 50%;
}

.circle-one {
    top: calc(100vh - 340px);
    left: -120px;
    width: 500px;
    height: 500px;
    opacity: 0.06;
}

.circle-two {
    top: calc(100vh - 250px);
    left: 80px;
    width: 380px;
    height: 380px;
    opacity: 0.04;
}

/* card */

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: min(780px, calc(100vh - 120px));
    padding: 48px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: none;
}

.login-card h2 {
    margin: 0 0 40px;
    font-size: 28px;
    line-height: 1.2;
    text-align: center;
    color: #111827;
}

/* form */

.login-form {
    display: grid;
    gap: 16px;
}

.login-form > label {
    display: block;
    margin-bottom: -8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.login-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.login-input svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.login-input input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    color: #111827;
    outline: 0;
}

.login-input input::placeholder {
    color: #9ca3af;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #6b7280;
}

.remember input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.login-options a {
    color: #249447;
}

.login-submit,
.login-create {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.login-submit {
    margin-top: 0;
    background: #249447;
}

.login-create {
    margin-top: 16px;
    background: #fff;
    border: 1.5px solid #249447;
    color: #249447;
}

.login-create:hover {
    text-decoration: none;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.login-divider span {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-divider em {
    font-size: 13px;
    font-style: normal;
    color: #9ca3af;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.login-security svg {
    width: 16px;
    height: 16px;
    color: #249447;
}

/* register */

.register-screen {
    grid-template-columns: minmax(320px, 1fr) minmax(440px, 520px);
    padding-top: 30px;
    padding-bottom: 30px;
    padding-right: clamp(32px, 8vw, 180px);
}

.register-card {
    min-height: min(720px, calc(100vh - 60px));
    padding: 40px 48px;
}

.register-card h2 {
    font-size: 26px;
    margin-bottom: 32px;
}

.register-input {
    height: 46px;
}

.terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b7280;
}

.terms-row input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.terms-row a {
    color: #249447;
}

.register-login-link {
    margin-top: 14px;
}

/* responsive */

@media (max-width: 1180px) {
    .login-screen {
        grid-template-columns: minmax(300px, 1fr) minmax(380px, 460px);
        padding-left: 48px;
        padding-right: 48px;
    }

    .login-copy h1 {
        font-size: 38px;
    }

    .login-card {
        min-height: auto;
        padding: 40px;
    }

    .register-screen {
        grid-template-columns: minmax(300px, 1fr) minmax(400px, 500px);
    }
}

@media (max-width: 940px) {
    .login-screen {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 104px 28px 40px;
    }

    .login-copy {
        max-width: 620px;
    }

    .login-card {
        width: 100%;
        max-width: 500px;
    }

    .register-card {
        max-width: 520px;
    }

    .circle-one {
        top: calc(100vh - 280px);
        left: -180px;
    }

    .circle-two {
        top: calc(100vh - 210px);
        left: 130px;
    }
}

@media (max-width: 760px) {
    .login-page,
    .login-page .container {
        height: auto;
        overflow-y: auto;
    }

    .login-screen {
        height: auto;
        min-height: 100vh;
        padding: 28px 18px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .login-brand,
    .login-copy,
    .login-card {
        position: relative;
    }

    .login-brand {
        top: auto;
        left: auto;
    }

    .login-copy {
        margin: 48px 0 24px;
    }

    .login-copy h1 {
        font-size: 32px;
    }

    .login-copy p br,
    .login-copy h1 br {
        display: none;
    }

    .login-card {
        width: 100%;
        min-height: auto;
        padding: 28px 20px;
    }

    .register-card {
        padding: 28px 20px;
    }

    .login-card h2 {
        margin-bottom: 28px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .login-circle {
        display: none;
    }
}
