/* ===== Auth pages (login / register funnels) — stark black & white, full-screen ===== */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
    background: #ffffff;
    padding: 32px 24px calc(40px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

/* Replaces the old boxed card — now a transparent, edge-to-edge column. */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.logo-icon-img {
    width: 128px;
    height: auto;
    display: block;
    filter: brightness(0); /* pure black mark on white */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin: 0 0 6px;
    letter-spacing: -0.035em;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.auth-loading {
    text-align: center;
    padding: 48px 0;
}

/* ===== Form fields ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Minimalist input: transparent, single crisp black bottom rule, no rounding. */
.form-input {
    width: 100%;
    padding: 10px 2px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    transition: border-color 0.15s ease;
}

.form-input::placeholder {
    color: #b3b3b3;
    font-weight: 400;
}

/* Keep total height stable when the border thickens on focus. */
.form-input:focus {
    border-bottom-width: 2px;
    padding-bottom: 9px;
}

.form-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-input.invalid,
.form-input.modified.invalid {
    border-bottom-color: #dc2626;
}

.validation-message {
    font-size: 0.76rem;
    color: #dc2626;
    margin-top: 2px;
}

/* ===== Buttons ===== */
.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.btn-auth-primary {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    background: #000;
    color: #fff;
    transition: background 0.15s ease, transform 0.05s ease;
}

.btn-auth-primary:hover:not(:disabled) {
    background: #1a1a1a;
}

.btn-auth-primary:active:not(:disabled) {
    transform: scale(0.995);
}

.btn-auth-primary:disabled {
    background: #cfcfcf;
    cursor: not-allowed;
}

/* Stark outline style shared by both secondary CTAs. */
.btn-auth-secondary,
.btn-auth-driver {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #000;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-auth-secondary:hover,
.btn-auth-driver:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 2px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

.auth-switch-link {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.auth-switch-link a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

/* ===== Driver registration wizard ===== */
.wizard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    margin-bottom: 18px;
}

.wizard-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.wizard-back:hover {
    opacity: 0.6;
}

.wizard-step-indicator {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-left: auto;
}

.wizard-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}

.wizard-progress span {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: #e6e6e6;
    transition: background 0.2s ease;
}

.wizard-progress span.active {
    background: #000;
}

/* ===== Alerts ===== */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-alert-error {
    background: #fff;
    border: 1px solid #dc2626;
    color: #dc2626;
}

.auth-alert-success {
    background: #fff;
    border: 1px solid #16a34a;
    color: #16a34a;
}
