/* ============================================================
   Rechneo – Auth CSS (Login, Register)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-danger: #ef4444;
    --color-success: #22c55e;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.auth-layout {
    font-family: var(--font);
    background: linear-gradient(135deg, #1e3a5f 0%, #1a1d23 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container { width: 100%; max-width: 440px; }

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-brand { font-size: 2rem; font-weight: 800; color: #1e293b; letter-spacing: -1px; }
.auth-tagline { color: #64748b; font-size: .875rem; margin-top: .25rem; }
.auth-title { font-size: 1.35rem; font-weight: 700; color: #1e293b; margin-bottom: .5rem; }
.auth-subtitle { color: #64748b; font-size: .875rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; color: #374151; margin-bottom: .4rem; }
.form-group input {
    width: 100%; padding: .7rem 1rem;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: .95rem; font-family: var(--font); color: #1e293b;
    transition: border .15s;
}
.form-group input:focus {
    outline: none; border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.form-actions { margin-top: 1.5rem; }

.btn { display: inline-block; padding: .75rem 1.5rem; border-radius: 8px; font-size: .95rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all .15s; font-family: var(--font); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-block { display: block; width: 100%; text-align: center; }

.alert { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .875rem; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.alert-info    { background: #e0f2fe; color: #075985; border-left: 4px solid #06b6d4; }
.alert p { margin-bottom: .25rem; }
.alert p:last-child { margin-bottom: 0; }

.auth-links { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: #64748b; }
.auth-links a { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

.auth-footer { text-align: center; margin-top: 1.5rem; color: rgba(255,255,255,.4); font-size: .8rem; }

/* Tenant Select */
.tenant-select-page h2 { margin-bottom: .5rem; color: #1e293b; }
.tenant-list { list-style: none; margin-top: 1.25rem; }
.tenant-list li { margin-bottom: .75rem; }
.tenant-select-btn {
    width: 100%; padding: 1rem 1.25rem;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; cursor: pointer; text-align: left;
    display: flex; justify-content: space-between; align-items: center;
    transition: all .15s; font-family: var(--font);
}
.tenant-select-btn:hover { border-color: var(--color-accent); background: #eff6ff; }
.role-badge { font-size: .75rem; background: #e0f2fe; color: #075985; padding: .2rem .6rem; border-radius: 20px; }
