/**
 * CRM auth pages — parity with legacy dev index.php (Metronic M8 app-blank + bg4).
 * Uses Metronic v9 Tailwind components with legacy split layout and primary #3E97FF.
 */

:root {
    --crm-auth-primary: #3E97FF;
    --crm-auth-primary-hover: #2884ef;
}

body.crm-auth-page {
    font-family: Inter, Helvetica, sans-serif;
    background-color: #151521;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.crm-auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

@media (min-width: 992px) {
    .crm-auth-shell {
        flex-direction: row;
    }
}

.crm-auth-brand {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

@media (min-width: 992px) {
    .crm-auth-brand {
        flex: 0 0 50%;
        max-width: 50%;
        justify-content: flex-start;
        padding-top: 4rem;
        padding-left: 2.5rem;
    }
}

.crm-auth-brand__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 992px) {
    .crm-auth-brand__inner {
        align-items: flex-start;
        text-align: left;
    }
}

.crm-auth-logo {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.75rem;
    fill: #ffffff;
}

.crm-auth-brand__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
}

.crm-auth-brand__title strong {
    font-weight: 700;
}

.crm-auth-form-col {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.crm-auth-card {
    width: 100%;
    max-width: 34.375rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 0 50px rgba(82, 63, 105, 0.15);
}

.crm-auth-card__body {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

@media (min-width: 992px) {
    .crm-auth-card__body {
        padding: 3rem 3.5rem 2.5rem;
    }
}

.crm-auth-heading {
    text-align: center;
    margin-bottom: 2.75rem;
}

.crm-auth-heading__title {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #181c32;
}

.crm-auth-heading__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #a1a5b7;
}

.crm-auth-card .kt-input {
    min-height: 2.75rem;
    background: transparent;
}

.crm-auth-card .kt-btn-primary {
    --primary: var(--crm-auth-primary);
    background-color: var(--crm-auth-primary);
    border-color: var(--crm-auth-primary);
    min-height: 2.75rem;
    font-weight: 600;
}

.crm-auth-card .kt-btn-primary:hover {
    background-color: var(--crm-auth-primary-hover);
    border-color: var(--crm-auth-primary-hover);
}

.crm-auth-forgot {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--crm-auth-primary);
    text-decoration: none;
}

.crm-auth-forgot:hover {
    color: var(--crm-auth-primary-hover);
}

.crm-auth-error {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #fff5f8;
    border: 1px solid #f1416c33;
    color: #f1416c;
    font-size: 0.875rem;
    font-weight: 500;
}
