/* MishLab — auth pages (Identity/Account/*) */

:root {
    --c-purple: #8b5fbf;
    --c-pink: #e8639a;
    --c-mint: #3dab8e;
    --gradient: linear-gradient(135deg, #e8639a, #8b5fbf, #3dab8e);
    --bg: #ffffff;
    --bg-elevated: #f7f7fa;
    --t-primary: #1a1726;
    --t-secondary: #5c586b;
    --t-muted: #9894a3;
    --border: rgba(0,0,0,.07);
    --border-light: rgba(0,0,0,.12);
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 100px;
    --f-display: 'DM Sans', system-ui, sans-serif;
    --f-body: 'Space Grotesk', system-ui, sans-serif;
    --f-ui: 'Inter', system-ui, sans-serif;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-elevated);
    font-family: var(--f-body);
    color: var(--t-primary);
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(900px circle at 15% 10%, rgba(232,99,154,.10), transparent 60%),
        radial-gradient(900px circle at 85% 90%, rgba(61,171,142,.10), transparent 60%);
    background-attachment: fixed;
}

.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
}
.auth-logo img { height: 44px; width: auto; display: block; }

.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 60px;
    gap: 18px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,.06), 0 0 80px rgba(139,95,191,.04);
}
.auth-card h1 {
    font-family: var(--f-display);
    font-size: 1.6rem;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.auth-card .lede {
    color: var(--t-secondary);
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.auth-foot {
    font-family: var(--f-ui);
    color: var(--t-muted);
    font-size: 0.8rem;
}
.auth-foot a { color: var(--t-secondary); text-decoration: none; }
.auth-foot a:hover { color: var(--c-purple); }

/* form fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .label {
    font-family: var(--f-ui);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--t-secondary);
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=tel],
.field select,
.field textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    background: var(--bg);
    font-size: 0.95rem;
    font-family: var(--f-body);
    color: var(--t-primary);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--c-purple);
    box-shadow: 0 0 0 4px rgba(139,95,191,.10);
}
.field .help, .field .text-danger { font-family: var(--f-ui); font-size: 0.78rem; }
.field .help { color: var(--t-muted); }
.field .text-danger { color: #d63a72; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-ui);
    font-size: 0.88rem;
    color: var(--t-secondary);
    margin: 4px 0 18px;
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--r-pill);
    font-family: var(--f-ui);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,95,191,.25); }
.btn-outline { background: transparent; border-color: var(--border-light); color: var(--t-primary); }
.btn-outline:hover { border-color: var(--c-purple); color: var(--c-purple); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* role choice cards on register page */
.role-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.role-choice label {
    display: block;
    cursor: pointer;
}
.role-choice input[type=radio] { display: none; }
.role-choice .card {
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 18px 16px;
    text-align: center;
    transition: all 0.2s;
    background: var(--bg);
}
.role-choice input[type=radio]:checked + .card {
    border-color: var(--c-purple);
    background: rgba(139,95,191,.04);
}
.role-choice .card .icon { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.role-choice .card .name {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}
.role-choice .card .sub {
    font-family: var(--f-ui);
    color: var(--t-muted);
    font-size: 0.78rem;
}

/* alerts / status */
.alert {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-error { background: rgba(232,99,154,.08); border-color: rgba(232,99,154,.25); color: #b73273; }
.alert-success { background: rgba(61,171,142,.10); border-color: rgba(61,171,142,.25); color: #1f7a5e; }
.alert-info { background: rgba(139,95,191,.08); border-color: rgba(139,95,191,.18); color: #6b3fa8; }

/* divider with text */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--t-muted);
    font-family: var(--f-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.or-divider::before, .or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.text-link { color: var(--c-purple); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.field .field-input { display: contents; }

/* validation summary */
.validation-summary-errors {
    background: rgba(232,99,154,.08);
    border: 1px solid rgba(232,99,154,.25);
    color: #b73273;
    padding: 12px 16px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    font-size: 0.88rem;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
