/* Smart Campaign Subscription — Login
   Exact layout match to design master (~62.5% left / ~37.5% right).
   Plain CSS only — no Node/npm. */

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

:root {
    --sc-bg: #f2f5fb;
    --sc-ink: #1a2332;
    --sc-ink-soft: #5c6578;
    --sc-muted: #8d95a8;
    --sc-line: #e4e8f1;
    --sc-card: #ffffff;
    --sc-blue: #517cfe;
    --sc-indigo: #6957fd;
    --sc-gradient: linear-gradient(90deg, #4f7cff 0%, #7c6af8 48%, #a855f7 100%);
    --sc-shadow-shell: 0 30px 80px rgba(60, 80, 140, 0.12);
    --sc-shadow-card: 0 18px 48px rgba(52, 70, 120, 0.14);
    --sc-radius-shell: 32px;
    --sc-radius-card: 24px;
    --sc-radius-input: 12px;
    --sc-font: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.login-body {
    font-family: var(--sc-font);
    color: var(--sc-ink);
    background-color: var(--sc-bg);
    background-image:
        radial-gradient(circle at 12% 20%, rgba(140, 170, 255, 0.22), transparent 28%),
        radial-gradient(circle at 88% 70%, rgba(180, 140, 255, 0.18), transparent 30%),
        url('../img/login-bg.jpg');
    background-size: auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--sc-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========== PAGE / SHELL ========== */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-shell {
    position: relative;
    width: 100%;
    max-width: 1280px;
    min-height: min(780px, calc(100vh - 44px));
    display: grid;
    /* Design measure from master: ~62.5% left / ~37.5% right */
    grid-template-columns: minmax(0, 1.67fr) minmax(340px, 1fr);
    align-items: stretch;
    border-radius: var(--sc-radius-shell);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 28%, rgba(150, 180, 255, 0.22), transparent 18%),
        radial-gradient(circle at 8% 78%, rgba(170, 120, 255, 0.16), transparent 16%),
        radial-gradient(circle at 78% 38%, rgba(120, 150, 255, 0.10), transparent 24%),
        linear-gradient(145deg, #ffffff 0%, #f7f9ff 45%, #eef3fc 100%);
    box-shadow: var(--sc-shadow-shell);
    border: 1px solid rgba(210, 218, 235, 0.9);
}

/* ========== LEFT HERO ========== */
.login-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: transparent;
}

/* Graphic as left-container background — full image, no crop */
.login-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #eef3fc;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.login-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(247, 249, 255, 0.55) 0%,
        rgba(247, 249, 255, 0.28) 18%,
        rgba(247, 249, 255, 0) 38%,
        rgba(247, 249, 255, 0) 72%,
        rgba(247, 249, 255, 0.35) 100%
    );
}

.login-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    padding: 34px 28px 22px 40px;
}

.login-hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.login-hero__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.login-hero__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.login-hero__brand-text strong {
    font-size: 17px;
    font-weight: 800;
    color: #1b2434;
    letter-spacing: -0.02em;
}

.login-hero__brand-text span {
    font-size: 13.5px;
    font-weight: 500;
    color: #8b93a7;
}

.login-hero__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #9aa3b7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.login-hero__nav i {
    font-style: normal;
    opacity: 0.7;
}

.login-hero__title {
    margin: 0 0 10px;
    max-width: 560px;
    font-size: clamp(28px, 3.1vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #171f2e;
}

.login-hero__title-accent {
    display: inline;
    background-image: var(--sc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-hero__lead {
    margin: 0 0 18px;
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 500;
    color: #6b7386;
}

/* Flexible window that reveals the left background graphic fully */
.login-hero__stage {
    flex: 1 1 auto;
    min-height: 300px;
    margin: 4px 0 10px;
}

.login-hero__trust {
    list-style: none;
    margin: auto 0 0;
    padding: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid rgba(180, 190, 210, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72) 35%, rgba(255, 255, 255, 0.88));
}

.login-hero__trust li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

.login-hero__trust img {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    flex-shrink: 0;
    opacity: 0.85;
}

.login-hero__trust span {
    font-size: 10.5px;
    line-height: 1.3;
    font-weight: 500;
    color: #8b93a7;
}

/* ========== RIGHT FORM ========== */
.login-aside {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 34px 28px 28px;
    min-width: 0;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.55), rgba(255, 255, 255, 0.75));
    /* Vertical bar between left graphic and login wrapper */
    border-left: 1px solid rgba(180, 190, 210, 0.55);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.65);
}

.login-aside::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(180, 190, 210, 0),
        rgba(160, 170, 195, 0.75) 20%,
        rgba(160, 170, 195, 0.75) 80%,
        rgba(180, 190, 210, 0)
    );
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--sc-card);
    border-radius: var(--sc-radius-card);
    box-shadow: var(--sc-shadow-card);
    padding: 30px 32px 24px;
    border: 1px solid rgba(220, 226, 238, 0.95);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 18px;
}

.login-brand__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.login-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.login-brand__text strong {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--sc-ink);
    letter-spacing: -0.015em;
}

.login-brand__text span {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sc-muted);
}

.login-card__title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--sc-ink);
}

.login-card__subtitle {
    margin: 0 auto 22px;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sc-muted);
    font-weight: 500;
    max-width: 300px;
}

.login-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
}

.login-field {
    margin-bottom: 12px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.75px;
    font-weight: 600;
    color: #384155;
}

.login-input {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input__icon {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    pointer-events: none;
}

.login-input__toggle {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.login-input__toggle:hover {
    background: #f3f5fa;
}

.login-input__toggle img {
    width: 17px;
    height: 17px;
    display: block;
}

.login-input input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #e2e6f0;
    border-radius: var(--sc-radius-input);
    background: #fff;
    padding: 0 42px;
    font: inherit;
    font-size: 13.75px;
    font-weight: 500;
    color: var(--sc-ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input input::placeholder {
    color: #b2b9c8;
    font-weight: 500;
}

.login-input input:focus {
    border-color: #8aa4ff;
    box-shadow: 0 0 0 4px rgba(81, 124, 254, 0.12);
}

.login-input--error input {
    border-color: #f87171;
}

.login-field__error {
    margin: 6px 0 0;
    font-size: 12px;
    color: #dc2626;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 14px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.75px;
    font-weight: 500;
    color: #4b5568;
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid #c5cce0;
    border-radius: 4px;
    display: grid;
    place-content: center;
    margin: 0;
    background: #fff;
    cursor: pointer;
}

.login-remember input:checked {
    background: var(--sc-indigo);
    border-color: var(--sc-indigo);
}

.login-remember input:checked::after {
    content: '';
    width: 8px;
    height: 5px;
    border: 2px solid #fff;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) translate(0.5px, -0.5px);
}

.login-forgot {
    font-size: 12.75px;
    font-weight: 600;
    color: var(--sc-blue);
    white-space: nowrap;
}

.login-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background-image: var(--sc-gradient);
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(99, 102, 241, 0.34);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit img {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: #b4bacc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    height: 1px;
    background: var(--sc-line);
}

.login-social {
    display: grid;
    gap: 9px;
}

.login-social__btn {
    width: 100%;
    height: 44px;
    border-radius: 11px;
    border: 1.5px solid #e4e8f1;
    background: #fff;
    color: #2f3748;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.login-social__btn:hover {
    background: #f8f9fc;
    border-color: #d5dbe8;
    text-decoration: none;
}

.login-social__btn img {
    width: 17px;
    height: 17px;
    display: block;
}

.login-secure {
    margin: 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--sc-muted);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.login-secure img {
    width: 12px;
    height: 12px;
    opacity: 0.85;
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    }

    .login-hero__content {
        padding: 28px 20px 18px 28px;
    }

    .login-aside {
        padding: 22px 24px;
    }

    .login-hero__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .login-page {
        padding: 14px;
        align-items: flex-start;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-hero {
        order: 1;
        min-height: 520px;
    }

    .login-hero__content {
        padding: 24px 20px 12px;
    }

    .login-hero__bg {
        background-position: center center;
        background-size: cover;
    }

    .login-hero__stage {
        min-height: 220px;
    }

    .login-aside {
        order: 2;
        padding: 16px 20px 24px;
        border-left: 0;
        border-top: 1px solid rgba(180, 190, 210, 0.45);
        box-shadow: none;
    }

    .login-aside::before {
        display: none;
    }

    .login-card {
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .login-hero__title {
        font-size: 26px;
    }

    .login-hero__trust {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .login-card__title {
        font-size: 24px;
    }

    .login-shell {
        border-radius: 22px;
    }
}
