/* ==========================================================================
   pages/login.css — Authentication screens
   Split layout: form panel on white, brand panel on deep slate.
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--crm-surface, #ffffff);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Form panel ----------------------------------------------------------- */

.auth-panel {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    padding: 2rem 2.5rem;
}

.auth-panel-header { flex-shrink: 0; }

.auth-panel-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-panel-footer {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #a3a099;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.auth-form-wrap {
    width: 100%;
    max-width: 380px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}
.auth-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #4a5ac2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}
.auth-logo-name {
    font-size: 1rem;
    font-weight: 600;
    color: #21201c;
    letter-spacing: -0.01em;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #21201c;
    margin-bottom: 0.375rem;
}
.auth-subtitle {
    font-size: 0.875rem;
    color: #79766c;
    margin-bottom: 2rem;
}

.auth-form .form-label { margin-bottom: 0.375rem; }

.auth-form .form-control {
    padding: 0.5938rem 0.875rem;
    font-size: 0.9063rem;
}

.auth-submit {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.9063rem;
    font-weight: 500;
    border-radius: 6px;
}

.auth-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.125rem 0 1.5rem;
}
.auth-meta-row .form-check-label { font-size: 0.8438rem; color: #475467; }
.auth-forgot {
    font-size: 0.8438rem;
    font-weight: 500;
}

/* ---- Brand panel ----------------------------------------------------------- */

.auth-aside {
    flex: 1 1 50%;
    background: #1b1a18;
    color: #b8b5ac;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* Fine blueprint grid — CSS only, no images */
.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 75%);
}

.auth-aside-inner { position: relative; max-width: 460px; }

.auth-aside-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #79766c;
    margin-bottom: 1rem;
}

.auth-aside-title {
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.auth-aside-text {
    font-size: 0.9063rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.auth-aside-points { list-style: none; padding: 0; margin: 0; }
.auth-aside-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8438rem;
    color: #b8b5ac;
    padding: 0.4375rem 0;
}
.auth-aside-points li i {
    color: #9aa4ec;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ---- Alerts on auth screens ----------------------------------------------- */

.auth-form .alert { margin-bottom: 1.25rem; }

/* ---- Responsive ------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .auth-aside { display: none; }
    .auth-panel { flex-basis: 100%; }
}

@media (max-width: 575.98px) {
    .auth-panel { padding: 1.5rem 1.25rem; }
    .auth-panel-footer { flex-direction: column; gap: 0.25rem; }
}
