/*
 * Member sign-in (resources/views/pages/customer/login.blade.php), matched to the ticketing system's sign-in card
 * (ticketing resources/views/auth/login.blade.php and its design tokens): Geist, a 400px white card with a hairline
 * border and 12px corners, 40px fields, a black button and one error box above the fields.
 * The theme sets 1rem = 10px, so sizes are in px. Logical properties serve English and Arabic alike.
 */
.ml-page {
    --ml-ink: #06205C; /* the logo navy */
    --ml-mute: #888888;
    --ml-canvas: #ffffff;
    --ml-canvas-soft: #fafafa;
    --ml-hairline: #ebebeb;
    --ml-hairline-strong: #a1a1a1;
    --ml-error: #ab1a2d;
    --ml-error-soft: #f7e1e5;
    --ml-error-deep: #8e1526;
    --ml-focus: rgba(23, 23, 23, 0.12);
    background: var(--ml-canvas-soft);
    color: var(--ml-ink);
    font-family: Geist, Inter, 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 20px;
    -webkit-font-smoothing: antialiased;
}

.ml-shell {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 64px 16px;
}

.ml-page .ml-card {
    width: 100%;
    max-width: 400px;
    background: var(--ml-canvas);
    border: 1px solid var(--ml-hairline);
    border-radius: 12px;
    padding: 32px;
}

.ml-page .ml-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.ml-page .ml-brand img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
}

.ml-page .ml-title {
    margin: 0 0 4px;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0;
    text-align: center;
}

.ml-page .ml-intro {
    margin: 0 0 24px;
    color: var(--ml-mute);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
    text-align: center;
}

.ml-page .ml-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.ml-page .ml-alert {
    padding: 12px;
    border: 1px solid var(--ml-error);
    border-radius: 8px;
    background: var(--ml-error-soft);
    color: var(--ml-error-deep);
    font-size: 14px;
    line-height: 20px;
}

.ml-page .ml-alert__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.ml-page .ml-alert ul {
    margin: 0;
    padding-inline-start: 20px;
    list-style: disc;
}

.ml-page .ml-alert li {
    list-style: disc;
    margin: 0;
}

.ml-page .ml-field label {
    display: block;
    margin: 0 0 4px;
    color: var(--ml-ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
    text-transform: none;
}

.ml-page .ml-field input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 12px;
    background: var(--ml-canvas);
    border: 1px solid var(--ml-hairline);
    border-radius: 8px;
    box-shadow: none;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ml-page .ml-field input::placeholder {
    color: var(--ml-hairline-strong);
    opacity: 1;
}

.ml-page .ml-field input:hover {
    border-color: #d4d4d4;
}

.ml-page .ml-field input:focus {
    outline: none;
    border-color: var(--ml-ink);
    box-shadow: 0 0 0 1px var(--ml-ink);
}

.ml-page .ml-field input[aria-invalid='true'] {
    border-color: var(--ml-error);
}

.ml-page .ml-field input[aria-invalid='true']:focus {
    box-shadow: 0 0 0 1px var(--ml-error);
}

.ml-page .ml-btn {
    display: block;
    width: 100%;
    height: 36px;
    margin-top: 8px;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--ml-ink);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.28px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.ml-page .ml-btn:hover {
    opacity: 0.9;
}

.ml-page .ml-btn:focus-visible {
    outline: 2px solid var(--ml-ink);
    outline-offset: 2px;
}

.ml-page .ml-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.ml-page .ml-help {
    margin: 0;
    color: var(--ml-mute);
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.ml-page .ml-help a {
    color: var(--ml-ink);
    font-weight: 600;
}

.ml-page .ml-help a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .ml-shell {
        min-height: 0;
        padding: 32px 15px 48px;
    }

    .ml-page .ml-card {
        padding: 24px;
    }
}
