/* ============================================================
   assets/css/auth.css
   Login & registration page styles
   ============================================================ */

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

:root {
    --color-bg:       #f0f4f8;
    --color-surface:  #ffffff;
    --color-primary:  #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-success:  #16a34a;
    --color-error:    #dc2626;
    --color-text:     #1e293b;
    --color-muted:    #64748b;
    --color-border:   #e2e8f0;
    --radius:         10px;
    --shadow:         0 4px 24px rgba(0,0,0,0.08);
}

body.auth-page {
    min-height: 100vh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--color-text);
    padding: 1rem;
}

.auth-container {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
}

/* Brand */
.auth-brand { text-align: center; margin-bottom: 1.75rem; }
.auth-logo  { font-size: 2.5rem; margin-bottom: 0.5rem; }
.auth-brand h1 { font-size: 1.5rem; font-weight: 700; color: var(--color-text); }
.auth-brand p  { color: var(--color-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: all 0.2s;
}
.tab-btn.active {
    background: var(--color-primary);
    color: #fff;
}

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Form */
.form-group        { margin-bottom: 1rem; }
.form-group label  { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--color-text); }
.form-group input  {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}
.btn:active      { transform: scale(0.98); }
.btn-primary     { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-full        { width: 100%; display: block; }
.btn-microsoft   { background: #fff; color: #333; border: 1px solid var(--color-border); display: flex; align-items: center; gap: 0.6rem; justify-content: center; }
.btn-microsoft:hover { background: #f8fafc; }
.btn-microsoft img { width: 18px; height: 18px; }

/* Divider */
.auth-divider {
    display: flex; align-items: center; gap: 0.75rem;
    margin: 1.25rem 0; color: var(--color-muted); font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 7px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-error   { background: #fef2f2; color: var(--color-error);   border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--color-success);  border: 1px solid #bbf7d0; }
