@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Outfit:wght@500;600;700&display=swap');

body.sign-in-layout.page--auth {
    --ink: #0b1524;
    --muted: #5a6b7d;
    --line: #e7eef6;
    --blue: #2d5bff;
    --blue-dark: #1e46d4;
    --panel: #ffffff;
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    background: #0f1b2d;
    overflow-x: hidden;
}

body.sign-in-layout.page--auth .center-vertical,
body.sign-in-layout.page--auth .container,
body.sign-in-layout.page--auth .login {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    position: static;
    top: auto;
    transform: none;
}

body.sign-in-layout.page--auth .auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 480px);
}

body.sign-in-layout.page--auth .auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #dfe8f2 center / cover no-repeat;
}

body.sign-in-layout.page--auth.has-auth-bg .auth-visual {
    background-image:
        linear-gradient(135deg, rgba(11, 21, 36, 0.58) 0%, rgba(11, 21, 36, 0.16) 42%, rgba(11, 21, 36, 0.48) 100%),
        var(--auth-bg);
    background-size: cover;
    background-position: center;
}

body.sign-in-layout.page--auth .auth-visual__content {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
}

body.sign-in-layout.page--auth .auth-visual__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}

body.sign-in-layout.page--auth .auth-visual__mark-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.sign-in-layout.page--auth .auth-visual__mark {
    width: 34px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

body.sign-in-layout.page--auth .auth-visual__name {
    font-family: "Outfit", "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

body.sign-in-layout.page--auth .auth-visual__tag {
    display: block;
    margin-top: 3px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

body.sign-in-layout.page--auth .auth-visual__hero {
    max-width: 520px;
    margin: 40px 0;
    animation: authFade .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes authFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

body.sign-in-layout.page--auth .auth-visual__title {
    margin: 0 0 14px;
    font-family: "Outfit", "DM Sans", sans-serif;
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

body.sign-in-layout.page--auth .auth-visual__text {
    margin: 0;
    max-width: 36ch;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

body.sign-in-layout.page--auth .auth-visual__meta {
    font-size: 12px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
}

body.sign-in-layout.page--auth .auth-panel {
    position: relative;
    background: var(--panel);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    box-shadow: -24px 0 60px rgba(11, 21, 36, 0.12);
}

body.sign-in-layout.page--auth .auth-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(45, 91, 255, 0.0), rgba(45, 91, 255, 0.55), rgba(45, 91, 255, 0.0));
}

body.sign-in-layout.page--auth .auth-panel__inner {
    width: min(360px, 100%);
    animation: authFade .65s .08s cubic-bezier(.22, 1, .36, 1) both;
}

body.sign-in-layout.page--auth .auth-panel__mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    text-decoration: none;
    color: var(--ink);
}

body.sign-in-layout.page--auth .auth-panel__mobile-brand img {
    width: 36px;
    height: auto;
}

body.sign-in-layout.page--auth .auth-panel__mobile-brand span {
    font-family: "Outfit", "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.sign-in-layout.page--auth .auth-panel__eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}

body.sign-in-layout.page--auth .auth-panel__title {
    margin: 0 0 8px;
    font-family: "Outfit", "DM Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ink);
}

body.sign-in-layout.page--auth .auth-panel__subtitle {
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

body.sign-in-layout.page--auth .panel,
body.sign-in-layout.page--auth .panel-background {
    display: none !important;
}

body.sign-in-layout.page--auth .login-form .alert {
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

body.sign-in-layout.page--auth .login-form .form-group {
    margin-bottom: 16px;
}

body.sign-in-layout.page--auth .login-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #3d4f63;
}

body.sign-in-layout.page--auth .login-form .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid #d7e1ec;
    background: #f7f9fc;
    box-shadow: none !important;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ink);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

body.sign-in-layout.page--auth .login-form .form-control:hover {
    background: #fff;
    border-color: #c5d2e0;
}

body.sign-in-layout.page--auth .login-form .form-control:focus {
    background: #fff;
    border-color: rgba(45, 91, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(45, 91, 255, 0.12) !important;
    outline: none;
}

body.sign-in-layout.page--auth .login-form .form-control::placeholder {
    color: #97a7b8;
}

body.sign-in-layout.page--auth .auth-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 22px;
}

body.sign-in-layout.page--auth .login-form .checkbox {
    padding-left: 0;
    margin: 0;
}

body.sign-in-layout.page--auth .login-form .checkbox label {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
    font-size: 13px;
}

body.sign-in-layout.page--auth .auth-form__meta a,
body.sign-in-layout.page--auth .forgot-form a {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

body.sign-in-layout.page--auth .auth-form__meta a:hover,
body.sign-in-layout.page--auth .forgot-form a:hover {
    text-decoration: underline;
}

body.sign-in-layout.page--auth .btn-login {
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(45, 91, 255, 0.22);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

body.sign-in-layout.page--auth .btn-login:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(45, 91, 255, 0.28);
}

body.sign-in-layout.page--auth .btn-login:active {
    transform: translateY(0);
}

body.sign-in-layout.page--auth .login-form hr {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

body.sign-in-layout.page--auth .sign-in-btn {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #d7e1ec;
    background: #fff;
    color: var(--ink) !important;
    font-weight: 700;
    box-shadow: none;
}

body.sign-in-layout.page--auth .sign-in-btn:hover {
    background: #f5f8fb;
    color: var(--ink) !important;
}

body.sign-in-layout.page--auth .app-links {
    margin-top: 18px;
}

body.sign-in-layout.page--auth .app-links img {
    max-height: 40px;
    margin: 0 auto;
}

@media (max-width: 960px) {
    body.sign-in-layout.page--auth .auth-shell {
        grid-template-columns: 1fr;
    }

    body.sign-in-layout.page--auth .auth-visual {
        min-height: 240px;
        height: 240px;
    }

    body.sign-in-layout.page--auth .auth-visual__content {
        min-height: 240px;
        height: 240px;
        padding: 24px 22px;
        justify-content: flex-end;
    }

    body.sign-in-layout.page--auth .auth-visual__brand,
    body.sign-in-layout.page--auth .auth-visual__meta {
        display: none;
    }

    body.sign-in-layout.page--auth .auth-visual__hero {
        margin: 0;
    }

    body.sign-in-layout.page--auth .auth-visual__title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    body.sign-in-layout.page--auth .auth-visual__text {
        font-size: 14px;
        max-width: 40ch;
    }

    body.sign-in-layout.page--auth .auth-panel {
        min-height: calc(100vh - 240px);
        padding: 32px 22px 40px;
        box-shadow: none;
        align-items: flex-start;
    }

    body.sign-in-layout.page--auth .auth-panel__mobile-brand {
        display: inline-flex;
    }

    body.sign-in-layout.page--auth .auth-panel__title {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    body.sign-in-layout.page--auth .auth-visual {
        min-height: 200px;
        height: 200px;
    }

    body.sign-in-layout.page--auth .auth-visual__content {
        min-height: 200px;
        height: 200px;
    }

    body.sign-in-layout.page--auth .auth-panel {
        min-height: calc(100vh - 200px);
    }
}
