/* =====================================================================
   BLANCO REAL ESTATE CRM — BASE STYLES, RESET, DESIGN TOKENS
   ===================================================================== */

:root {
    --navy-primary: #071B3A;
    --navy-secondary: #102B52;
    --blue-primary: #315FEA;
    --blue-light: #EAF0FF;
    --green-success: #20B56B;
    --orange-warning: #F5A623;
    --red-danger: #E5484D;
    --purple: #9B59D0;
    --teal: #21B6B0;
    --bg: #F6F8FC;
    --card: #FFFFFF;
    --text-main: #17213A;
    --text-secondary: #718096;
    --border: #E6EAF0;

    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 4px 16px rgba(23, 33, 58, 0.06);
    --shadow-card: 0 2px 10px rgba(23, 33, 58, 0.05);
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--text-main);
}

p {
    margin: 0;
}

a {
    color: var(--blue-primary);
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
}

.text-muted {
    color: var(--text-secondary);
}

/* ---------------------------------------------------------------------
   Badges
   --------------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.badge-blue { background: var(--blue-light); color: var(--blue-primary); }
.badge-blue-light { background: #EEF2F9; color: var(--text-secondary); }
.badge-green { background: #E7F9EF; color: var(--green-success); }
.badge-orange { background: #FEF3E1; color: var(--orange-warning); }
.badge-amber { background: #FEF3E1; color: #B77A0E; }
.badge-red { background: #FCE9EA; color: var(--red-danger); }
.badge-purple { background: #F3E9FA; color: var(--purple); }
.badge-teal { background: #E4FAF9; color: var(--teal); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    transition: background 0.15s ease;
}
.btn-primary:hover {
    background: #2A50CC;
}

/* ---------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------- */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 14px;
}
.alert-danger { background: #FCE9EA; color: #A5262A; }
.alert-warning { background: #FEF3E1; color: #8A5A0E; }
.alert-success { background: #E7F9EF; color: #157A47; }

/* ---------------------------------------------------------------------
   Auth (login) page
   --------------------------------------------------------------------- */
.auth-body {
    background: linear-gradient(160deg, var(--navy-primary), var(--navy-secondary));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 36px 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-primary), var(--purple));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.brand-mark img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.brand-logo-only {
    max-height: 68px;
    max-width: 100%;
    object-fit: contain;
}

.brand-text {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 14px;
    color: var(--navy-primary);
    line-height: 1.3;
}
.brand-text small {
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    font-size: 10px;
}

.auth-card h1 {
    font-size: 20px;
    margin-bottom: 18px;
}

.auth-card form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 14px 0 6px;
}

.auth-card form input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg);
}
.auth-card form input:focus {
    outline: 2px solid var(--blue-primary);
    outline-offset: 1px;
}

.auth-card .btn-primary {
    margin-top: 22px;
}
