/* OutWit.Common.Blazor.Theme - Material 3 Auth Page Styles */

/* Auth layout visuals */
.auth-body {
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    background: var(--m3-surface, #f6f8fb);
    color: var(--m3-on-surface, #1b2633);
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.auth-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: rgba(0,0,0,.55);
}

.auth-footer a {
    color: inherit;
    text-decoration: underline;
}

.auth-footer .sep {
    opacity: .6;
}

.auth-shell {
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 32px);
}

/* Auth card */
.auth-card {
    width: min(640px, 92vw);
    background: #fff;
    color: var(--md-sys-color-on-surface);
    border-radius: 20px;
    box-shadow: 0 10px 20px -10px rgba(var(--shadow-rgb), .25), 
                0 2px 6px -2px rgba(var(--shadow-rgb), .10);
    padding: clamp(20px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
    .auth-card {
        background: hsl(220 15% 14%);
        color: #e9edf5;
        box-shadow: 0 12px 24px -12px rgba(0,0,0,.6), 
                    0 1px 0 rgba(255,255,255,.05) inset;
    }
}

/* Auth brand */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.auth-brand img {
    height: 32px;
}

.auth-brand .brand-name {
    font-weight: 700;
    font-size: 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin: 6px 0 18px;
}

/* Auth form */
.auth-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 14px;
    opacity: .9;
}

/* Input styling */
.input {
    font: inherit;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: #fff;
    color: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

@media (prefers-color-scheme: dark) {
    .input {
        background: hsl(220 16% 18%);
    }
}

.input:focus {
    border-color: color-mix(in oklab, var(--md-sys-color-primary) 65%, transparent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--md-sys-color-primary) 20%, transparent);
}

/* Validation messages */
.validation {
    color: #d93025;
    font-size: 12px;
}

.validation-summary {
    color: #d93025;
    margin-bottom: 4px;
}

/* Row helpers */
.row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.between {
    justify-content: space-between;
}

/* Checkbox */
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: 16px;
    height: 16px;
}

.checkbox-label {
    font-size: 14px;
}

/* Buttons */
.btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn.primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary-contrast);
}

.btn.primary:hover {
    filter: brightness(1.04);
}

.full {
    width: 100%;
}

/* Links */
.link {
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.fine-print {
    text-align: center;
    font-size: 12px;
    opacity: .8;
    margin-top: 4px;
}
