:root {
    color-scheme: light;
    --background: #f1f4f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --primary: #101828;
    --primary-hover: #1d2939;
    --text: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --success: #12b76a;
    --success-dark: #027a48;
    --danger: #b42318;
    --danger-background: #fef3f2;
    --shadow: 0 32px 90px rgba(16, 24, 40, 0.15);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 7% 12%, rgba(148, 163, 184, 0.18), transparent 28%),
        radial-gradient(circle at 94% 88%, rgba(203, 213, 225, 0.25), transparent 30%),
        var(--background);
}

button,
input {
    font: inherit;
}

svg {
    display: block;
}

.hidden {
    display: none !important;
}

.page-shell {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
}

.identity-panel {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    overflow: hidden;
    border: 1px solid rgba(228, 231, 236, 0.9);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.brand-area {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 14%, rgba(148, 163, 184, 0.15), transparent 31%),
        linear-gradient(145deg, #101828 0%, #1d2939 55%, #25334a 100%);
}

.brand-area::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    top: -235px;
    right: -190px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.brand-area::after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    left: -145px;
    bottom: -130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
}

.brand-content {
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding: 64px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.identity-symbol {
    width: 68px;
    height: 68px;
    margin-bottom: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.identity-symbol svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-area .eyebrow {
    color: #cbd5e1;
}

.brand-area h1 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(48px, 5vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.brand-area h1 span {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 0.42em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-description {
    max-width: 505px;
    margin: 25px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
}

.identity-features {
    max-width: 505px;
    margin-top: 38px;
    display: grid;
    gap: 17px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.feature-check {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #6ce9a6;
    font-size: 12px;
    font-weight: 800;
}

.feature-item strong,
.feature-item small {
    display: block;
}

.feature-item strong {
    margin-bottom: 3px;
    color: #f8fafc;
    font-size: 13px;
}

.feature-item small {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.companies {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.09em;
}

.separator {
    width: 1px;
    height: 17px;
    background: rgba(255, 255, 255, 0.25);
}

.platform-status {
    margin-top: 36px;
    padding-top: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.platform-status strong,
.platform-status small {
    display: block;
}

.platform-status strong {
    color: #f8fafc;
    font-size: 12px;
}

.platform-status small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #32d583;
    box-shadow: 0 0 0 5px rgba(50, 213, 131, 0.12);
}

.login-area {
    padding: 54px 70px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
}

.login-card {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.card-heading {
    margin-bottom: 31px;
}

.card-heading .eyebrow {
    color: #475467;
}

.card-heading h2 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.045em;
}

.card-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 54px 0 47px;
    border: 1px solid #d0d5dd;
    border-radius: 13px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.input-wrapper input::placeholder {
    color: #98a2b3;
}

.input-wrapper input:focus {
    border-color: #667085;
    box-shadow: 0 0 0 4px rgba(102, 112, 133, 0.11);
}

.input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f2f4f7;
    color: #344054;
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.remember-row {
    margin: 1px 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475467;
    cursor: pointer;
    font-size: 13px;
}

.remember-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.primary-button {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-weight: 750;
    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.primary-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-message {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 11px;
    background: var(--danger-background);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.5;
}

.recovery-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.recovery-section p {
    margin: 0 0 12px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.recovery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 17px;
}

.recovery-actions a {
    color: #344054;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.recovery-actions a:hover {
    text-decoration: underline;
}

.directory-status {
    margin-top: 27px;
    padding: 15px 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
}

.directory-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
}

.directory-copy strong,
.directory-copy small {
    display: block;
}

.directory-copy strong {
    color: #344054;
    font-size: 12px;
}

.directory-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.status-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: var(--success-dark);
    font-size: 10px;
    font-weight: 800;
}

footer {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    gap: 8px;
    color: #98a2b3;
    font-size: 10px;
}

@media (max-width: 940px) {
    .page-shell {
        padding: 18px;
    }

    .identity-panel {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .brand-content {
        min-height: 520px;
        padding: 48px;
    }

    .brand-area h1 {
        font-size: 50px;
    }

    .login-area {
        padding: 48px 36px 30px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 0;
        display: block;
    }

    .identity-panel {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brand-content {
        min-height: auto;
        padding: 34px 25px 37px;
    }

    .identity-symbol {
        width: 54px;
        height: 54px;
        margin-bottom: 22px;
        border-radius: 16px;
    }

    .identity-symbol svg {
        width: 26px;
        height: 26px;
    }

    .brand-area h1 {
        font-size: 39px;
    }

    .brand-description {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.55;
    }

    .identity-features {
        display: none;
    }

    .companies {
        margin-top: 23px;
        font-size: 10px;
    }

    .platform-status {
        margin-top: 23px;
        padding-top: 20px;
    }

    .login-area {
        padding: 38px 24px 24px;
    }

    .card-heading h2 {
        font-size: 31px;
    }

    .recovery-actions {
        flex-direction: column;
        gap: 12px;
    }

    .directory-status {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .status-badge {
        display: none;
    }
}

.dashboard-shell {
    min-height: 100vh;
    padding: 32px;
    display: grid;
    place-items: center;
    background: var(--background);
}

.dashboard-card {
    width: min(1050px, 100%);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.dashboard-header p {
    margin: 10px 0 0;
    color: var(--muted);
}

.logout-button {
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

.logout-button:hover {
    background: var(--surface-soft);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-item {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.profile-item span,
.profile-item strong {
    display: block;
}

.profile-item span {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.profile-item strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.dashboard-notice {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #abefc6;
    border-radius: 14px;
    background: #ecfdf3;
}

.dashboard-notice strong {
    color: #027a48;
}

.dashboard-notice p {
    margin: 5px 0 0;
    color: #05603a;
    font-size: 13px;
}

@media (max-width: 700px) {
    .dashboard-shell {
        padding: 16px;
    }

    .dashboard-card {
        padding: 26px 20px;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.password-page {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
    background: var(--background);
}

.password-card {
    width: min(560px, 100%);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.password-header {
    margin-bottom: 30px;
}

.password-header h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.04em;
}

.password-header > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.password-form .field-group input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    outline: none;
    background: var(--surface);
    color: var(--text);
}

.password-form .field-group input:focus {
    border-color: #667085;
    box-shadow: 0 0 0 4px rgba(102, 112, 133, 0.11);
}

.password-guidance {
    margin: 5px 0 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.password-guidance strong {
    color: #344054;
    font-size: 13px;
}

.password-guidance p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.password-message {
    margin: 0 0 22px;
}

.success-message {
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #027a48;
}

.dashboard-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-action {
    padding: 12px 18px;
    border-radius: 11px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.dashboard-action:hover {
    background: var(--primary-hover);
}

@media (max-width: 560px) {
    .password-page {
        padding: 16px;
    }

    .password-card {
        padding: 28px 22px;
    }

    .password-header h1 {
        font-size: 31px;
    }
}

.password-user-badge {
    margin-top: 20px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.password-user-badge span {
    color: var(--muted);
    font-size: 12px;
}

.password-user-badge strong {
    color: var(--text);
    font-size: 13px;
}
