﻿/* Login page — layout aligned with SafeAspect marketing login */
.sa-login-body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111827;
    background: #fff;
}
/* New login layout */
.sa-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

.sa-left {
    background:
        radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.12), transparent 38%),
        radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.12), transparent 44%),
        linear-gradient(140deg, #060d1b, #091325 40%, #08111f);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0 1.85rem 0.45rem;
    position: relative;
    overflow: hidden;
}

.sa-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.25;
    pointer-events: none;
}

.sa-left-inner {
    flex: 1;
    padding-top: 0;
}

.sa-logo {
    margin-left: -90px;
}

.sa-logo img {
    max-height: 148px;
    display: block;
    margin-left: 0;
    width: auto;
}

html[dir="rtl"] .sa-logo {
    margin-left: 0;
    margin-right: -90px;
}

html[dir="rtl"] .sa-logo img {
    margin-left: 0;
    margin-right: 0;
}

.sa-hero-headline {
    margin-top: 0;
    margin-bottom: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 3vw, 2.9rem);
}

.sa-orange {
    color: #f97316;
}

.sa-content-row {
    display: grid;
    grid-template-columns: 1fr 416px;
    gap: 1.5rem;
    align-items: start;
    margin-top: -0.2rem;
}

.sa-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sa-bullet {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.sa-bullet-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin-top: 0.1rem;
    color: #f97316;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sa-bullet-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.3));
}

.sa-bullet-text {
    color: #e5e7eb;
    font-size: 1.04rem;
    line-height: 1.3;
}

.sa-helmet-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    margin-top: -265px;
}

.sa-helmet-image {
    width: min(416px, 100%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.sa-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.sa-trust-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.42rem 0.7rem;
    min-width: 0;
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 0.4rem;
    align-items: center;
}

.sa-trust-icon {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.45);
}

.sa-trust-title {
    display: block;
    font-size: 0.75rem;
    color: #f8fafc;
    font-weight: 700;
    line-height: 1.1;
}

.sa-trust-sub {
    display: block;
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.15;
}

.sa-left-footer {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.sa-right {
    background: #f8fafc;
    display: grid;
    place-items: center;
    padding: 1.2rem 1.4rem;
}

.sa-form-box,
.form-box {
    width: min(520px, 100%);
    background: transparent;
    border: none;
    border-radius: 1rem;
    padding: 0.45rem;
    box-shadow: none;
}

.sa-welcome-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.welcome-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sa-welcome-shield {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid #f97316;
    background: rgba(249, 115, 22, 0.12);
}

.sa-welcome-title {
    font-weight: 800;
    font-size: 1.08rem;
    color: #111827;
}

.welcome-title {
    font-weight: 800;
    font-size: 1.85rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #f97316;
}

.welcome-title-row svg {
    width: 26px;
    height: 26px;
}

.welcome-header {
    margin-bottom: 0.2rem;
}

.welcome-sub {
    margin: 0.55rem 0 2rem;
    color: #64748b;
    font-size: 1.05rem;
}

.sa-form-stack,
.form-stack {
    display: grid;
    gap: 0.9rem;
}

.sa-field-label,
.field-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 0.55rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    display: block;
}

.sa-input-wrap,
.input-wrap {
    position: relative;
}

.sa-input-icon,
.input-icon {
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sa-input-icon svg,
.input-icon svg {
    width: 18px;
    height: 18px;
}

.sa-form-input,
.form-input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem 2.7rem 1rem 2.9rem;
    outline: none;
    background: #fff;
    font-size: 0.93rem;
    color: #475569;
}

.sa-form-input:focus,
.form-input:focus {
    border-color: #cbd5e1;
    box-shadow: none;
}

.sa-input-eye,
.input-eye {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #cbd5e1;
    padding: 0.2rem;
}

.sa-input-eye svg,
.input-eye svg {
    width: 18px;
    height: 18px;
}

.sa-remember-row,
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
}

.sa-remember-label,
.sa-forgot-link,
.remember-label,
.forgot-link {
    font-size: 0.95rem;
    color: #64748b;
    text-decoration: none;
}

.sa-forgot-link:hover,
.forgot-link:hover {
    color: #475569;
}

.sa-remember-checkbox,
.remember-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid #9ca3af;
    appearance: none;
    background: #fff;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.sa-remember-checkbox:checked,
.remember-checkbox:checked {
    background: #fff;
    border-color: #0f172a;
    position: relative;
}

.sa-remember-checkbox:checked::after,
.remember-checkbox:checked::after {
    content: "";
    width: 10px;
    height: 5px;
    border-left: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: rotate(-45deg);
    position: absolute;
    left: 3px;
    top: 4px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.9rem 0 1rem;
    cursor: pointer;
}

.consent-legal-link {
    color: #c2410c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-legal-link:hover,
.consent-legal-link:focus {
    color: #9a3412;
}

.sa-terms-modal-body {
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

.sa-terms-legal-text {
    white-space: pre-line;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #334155;
}

.consent-checkbox {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    border-radius: 5px;
    border: 1.5px solid #9ca3af;
    appearance: none;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.consent-checkbox:checked {
    border-color: #0f172a;
}

.consent-checkbox:checked::after {
    content: "";
    width: 10px;
    height: 5px;
    border-left: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: rotate(-45deg);
    position: absolute;
    left: 3px;
    top: 4px;
}

.consent-label {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.sa-btn-signin,
.btn-signin {
    width: 100%;
    border: 0;
    border-radius: 1rem;
    padding: 1.08rem 0.95rem;
    background: #020817;
    color: #fff;
    font-weight: 800;
    font-size: 1.14rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
}

.sa-btn-signin:disabled,
.btn-signin:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.92;
}

.sa-btn-signin:disabled:hover,
.btn-signin:disabled:hover {
    background: #94a3b8;
}

.sa-btn-signin:hover,
.btn-signin:hover:not(:disabled) {
    background: #0f172a;
}

.sa-btn-signin svg,
.btn-signin svg {
    width: 16px;
    height: 16px;
}

.sa-or-divider,
.or-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.05rem 0;
}

.sa-or-line,
.or-line {
    height: 1px;
    background: #e2e8f0;
    flex: 1;
}

.sa-or-text,
.or-text {
    color: #94a3b8;
    font-size: 0.8rem;
}

.sa-btn-create,
.btn-create {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f97316;
    background: #fff;
    border-radius: 1rem;
    padding: 1.02rem 0.95rem;
    color: #f97316;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.14rem;
    gap: 0.45rem;
}

.sa-btn-create svg,
.btn-create svg {
    width: 18px;
    height: 18px;
}

.sa-trust-chips,
.trust-chips {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 1rem;
}

.sa-trust-chip,
.trust-chip {
    border: 0;
    border-radius: 999px;
    padding: 0.1rem 0.2rem;
    color: #374151;
    font-size: 0.92rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.sa-trust-chip:nth-child(3),
.trust-chip:nth-child(3) {
    flex-basis: 100%;
}

.sa-chip-check {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid #22c55e;
    background: rgba(34, 197, 94, 0.15);
    position: relative;
}

.sa-chip-check::after {
    content: "";
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #22c55e;
    border-bottom: 1.5px solid #22c55e;
    transform: rotate(-45deg);
    position: absolute;
    top: 4px;
    left: 4px;
}

.sa-right-footer,
.right-footer {
    margin-top: 1.15rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sa-right-footer a,
.right-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.78rem;
}

.trust-chip svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
    flex: 0 0 16px;
}

.sa-fp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sa-fp-steps li {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    background: #fff;
}

.sa-fp-steps li.active {
    border-color: #f97316;
    color: #fff;
    background: #f97316;
}

.sa-fp-steps li.done {
    border-color: #22c55e;
    color: #fff;
    background: #22c55e;
}

.sa-fp-modal {
    border-radius: 16px;
    border: none;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.sa-fp-modal-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.sa-fp-mail-fly {
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.sa-fp-mail-icon {
    width: 72px;
    height: 54px;
    animation: saFpMailFly 1.4s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(249, 115, 22, 0.25));
}

@keyframes saFpMailFly {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-18px) rotate(3deg);
    }
}

.sa-fp-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-fp-modal .btn-signin {
    width: auto;
    min-width: 140px;
}

.sa-fp-error-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    max-height: 220px;
    overflow: auto;
}

.sa-fp-error-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.sa-fp-error-detail {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: transparent;
    border: none;
    padding: 0;
}

.sa-fp-error-detail--sm {
    font-size: 0.68rem;
}

@media (max-width: 991.98px) {
    .sa-page {
        grid-template-columns: 1fr;
    }

    .sa-left {
        display: none;
    }

    .sa-form-box {
        padding: 1.1rem 1rem;
    }
}
