﻿:root {
    --cm-navy: #0b1f4d;
    --cm-blue: #255cf4;
    --cm-indigo: #4f46e5;
    --cm-orange: #e85b00;
    --cm-text: #10204a;
    --cm-muted: #6f7b99;
    --cm-border: #dce4f2;
    --cm-surface: #ffffff;
    --cm-soft: #f6f9ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--cm-text);
    font-family: 'Open Sans', sans-serif;
    background: radial-gradient(circle at 8% 8%, rgba(37, 92, 244, 0.11), transparent 28%), radial-gradient(circle at 92% 92%, rgba(79, 70, 229, 0.09), transparent 26%), #f7f9fd;
}

.login-page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-shell {
    width: min(1480px, 100%);
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(380px, 0.92fr) minmax(560px, 1.28fr);
    overflow: hidden;
    border: 1px solid rgba(184, 198, 226, 0.5);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 80px rgba(26, 46, 91, 0.14);
    backdrop-filter: blur(14px);
}

.brand-panel {
    position: relative;
    overflow: hidden;
    padding: 64px 58px 54px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(255,255,255,.97) 0%, rgba(239,245,255,.98) 58%, rgba(224,235,255,.98) 100%);
}

    .brand-panel::before,
    .brand-panel::after {
        content: '';
        position: absolute;
        border-radius: 999px;
        pointer-events: none;
    }

    .brand-panel::before {
        width: 330px;
        height: 330px;
        top: -185px;
        right: -115px;
        border: 1px solid rgba(37, 92, 244, .14);
        box-shadow: 0 0 0 46px rgba(37, 92, 244, .035), 0 0 0 92px rgba(37, 92, 244, .025);
    }

    .brand-panel::after {
        width: 420px;
        height: 220px;
        left: -70px;
        bottom: -110px;
        background: linear-gradient(135deg, rgba(37,92,244,.10), rgba(79,70,229,.02));
        filter: blur(10px);
    }

.brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
}

.product-logo {
    width: min(360px, 82%);
    height: auto;
    margin-bottom: 18px;
}

.company-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #24345e;
    font-size: 17px;
    margin-bottom: 58px;
}

    .company-mark::before {
        content: '';
        width: 48px;
        height: 1px;
        background: #aab7d2;
    }

    .company-mark img {
        max-width: 138px;
        max-height: 34px;
        object-fit: contain;
    }

.brand-title {
    max-width: 500px;
    margin: 0;
    font-size: clamp(38px, 3.2vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: #0b1f4d;
}

    .brand-title span {
        color: var(--cm-blue);
    }

.brand-copy {
    max-width: 510px;
    margin: 24px 0 0;
    font-size: 17px;
    line-height: 1.75;
    color: #53617f;
}

.trust-card {
    width: min(440px, 100%);
    margin-top: 34px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(37, 92, 244, .14);
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 16px 38px rgba(37,92,244,.08);
}

.trust-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--cm-blue), var(--cm-indigo));
    box-shadow: 0 10px 22px rgba(37,92,244,.26);
}

.trust-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
    color: #13285a;
}

.trust-card span {
    font-size: 13px;
    color: #6e7c99;
}

.brand-footer {
    margin-top: auto;
    padding-top: 44px;
    font-size: 14px;
    color: #60708f;
}

    .brand-footer a {
        color: var(--cm-blue);
        font-weight: 700;
        text-decoration: none;
    }

.login-panel {
    position: relative;
    padding: 58px 72px 46px;
    background: rgba(255,255,255,.96);
}

.login-panel-inner {
    width: min(650px, 100%);
    margin: 0 auto;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--cm-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

    .login-kicker::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--cm-orange);
        box-shadow: 0 0 0 5px rgba(232,91,0,.10);
    }

.login-heading {
    margin: 0;
    color: #0d1f4b;
    font-size: clamp(38px, 3.1vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.login-subtitle {
    margin: 12px 0 34px;
    color: var(--cm-muted);
    font-size: 17px;
}

.alert {
    border-radius: 14px;
}

.error {
    color: #c73535;
    font-size: 14px;
}

.validation-summary-errors ul {
    margin-bottom: 0;
}

.field-group {
    margin-bottom: 22px;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}

    .field-label-row label,
    .field-group > label {
        margin-bottom: 9px;
        color: #1b2d58;
        font-size: 14px;
        font-weight: 700;
    }

    .field-label-row label {
        margin-bottom: 0;
    }

    .field-label-row a {
        color: var(--cm-blue);
        font-size: 13px;
        text-decoration: none;
        font-weight: 600;
    }

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #7582a1;
    font-size: 17px;
    pointer-events: none;
}

.login-input {
    min-height: 58px;
    padding: 14px 52px 14px 51px;
    border: 1px solid var(--cm-border);
    border-radius: 14px;
    background: #fbfcff;
    color: #142650;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

    .login-input:focus {
        border-color: #7c9cff;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(37,92,244,.10);
    }

#togglePasswordBtn {
    border: 0;
    background: transparent;
    padding: 10px;
    right: 10px;
    color: #72809e !important;
}

    #togglePasswordBtn:hover {
        color: #27375c !important;
    }

    #togglePasswordBtn:focus {
        box-shadow: none;
        outline: none;
    }

.remember-row {
    margin: 2px 0 24px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: .12em;
    border-color: #b9c5dd;
}

    .form-check-input:checked {
        background-color: var(--cm-blue);
        border-color: var(--cm-blue);
    }

.form-check-label {
    padding-left: 5px;
    color: #465575;
    font-size: 14px;
}

.sign-in-btn {
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #1f5ef3, #5848ee);
    box-shadow: 0 14px 28px rgba(45,78,223,.24);
    font-size: 16px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .sign-in-btn:hover,
    .sign-in-btn:focus {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(45,78,223,.30);
    }

.section-separator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    color: #8792aa;
    font-size: 13px;
    white-space: nowrap;
}

    .section-separator::before,
    .section-separator::after {
        content: '';
        height: 1px;
        flex: 1;
        background: #e4e9f3;
    }

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

    .social-buttons form {
        width: 100%;
    }

.social-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid var(--cm-border);
    border-radius: 13px;
    background: #fff;
    color: #22335e;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

    .social-button:hover {
        border-color: #b8c8ed;
        background: #f8faff;
        transform: translateY(-1px);
    }

    .social-button img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

.app-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-btn {
    min-width: 170px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 12px;
    color: #fff;
    background: #11151c;
    text-decoration: none;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

    .app-btn:hover {
        color: #fff;
        background: #05070b;
    }

    .app-btn i {
        font-size: 27px;
    }

    .app-btn p {
        line-height: 1.2;
        text-align: left;
    }

    .app-btn span {
        margin-top: 2px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0;
    }

.security-note {
    margin-top: 28px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e1e8f7;
    border-radius: 14px;
    background: #f8faff;
    color: #667493;
    font-size: 13px;
}

    .security-note i {
        color: var(--cm-blue);
        font-size: 18px;
    }

    .security-note strong {
        color: #28427c;
    }

.modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(25,45,88,.20);
}

.modal-header,
.modal-footer {
    border-color: #edf0f6;
}

@@media (max-width: 1050px) {
    .login-shell {
        grid-template-columns: 1fr;
        width: min(760px, 100%);
    }

    .brand-panel {
        padding: 38px 40px 34px;
    }

    .company-mark,
    .brand-copy,
    .trust-card,
    .brand-footer {
        display: none;
    }

    .product-logo {
        width: 280px;
        margin-bottom: 20px;
    }

    .brand-title {
        max-width: 620px;
        font-size: 34px;
    }

    .login-panel {
        padding: 48px 42px 42px;
    }
}

@@media (max-width: 575px) {
    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brand-panel {
        padding: 28px 24px 24px;
    }

    .product-logo {
        width: 220px;
    }

    .brand-title {
        font-size: 27px;
    }

    .login-panel {
        padding: 36px 24px 32px;
    }

    .login-heading {
        font-size: 35px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .app-links {
        flex-direction: column;
        align-items: stretch;
    }

    .app-btn {
        width: 100%;
    }
}

