/* =============================================================
   C.A.R.E. Login Page Styles
   File: webroot/css/login.css
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

body.care-login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0d2137;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Subtle background decorative circles */
body.care-login-page::before,
body.care-login-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}
body.care-login-page::before {
    width: 420px; height: 420px;
    background: rgba(255,255,255,0.025);
    top: -100px; left: -100px;
}
body.care-login-page::after {
    width: 280px; height: 280px;
    background: rgba(255,255,255,0.025);
    bottom: -70px; right: -50px;
}

/* ── Card ─────────────────────────────────────────────────── */
.care-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    position: relative;
    z-index: 1;
}

/* ── Card header ──────────────────────────────────────────── */
.care-card-header {
    background: #103354;
    padding: 2.2rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.care-card-header-dots {
    position: absolute;
    top: 14px; left: 18px;
    display: flex; gap: 6px;
}
.care-card-header-dots span {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.care-seal {
    width: 76px; height: 76px;
    background: #0d2137;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    border: 2px solid rgba(255,255,255,0.12);
}
.care-seal i {
    font-size: 32px;
    color: #5ba3d9;
}

.care-system-name {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
    margin: 0 0 5px;
    line-height: 1;
}

.care-system-full {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.care-office {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin: 0 0 14px;
    line-height: 1.5;
}

.care-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    padding: 4px 13px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.care-admin-badge i { font-size: 11px; }

/* ── Card body ────────────────────────────────────────────── */
.care-card-body {
    padding: 2rem;
}

/* Flash messages */
.care-card-body .alert {
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.care-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.care-input-wrap {
    position: relative;
    margin-bottom: 1.1rem;
}
.care-input-wrap i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
}
.care-input-wrap input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
}
.care-input-wrap input:focus {
    border-color: #5ba3d9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91,163,217,0.18);
}
.care-input-wrap input::placeholder { color: #9ca3af; }

/* Toggle password visibility */
.care-input-wrap .toggle-pw {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #9ca3af;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.care-input-wrap .toggle-pw:hover { color: #5ba3d9; }

.care-login-btn {
    width: 100%;
    padding: 11px;
    background: #103354;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.4rem;
    transition: background 0.15s, transform 0.1s;
}
.care-login-btn:hover  { background: #0d2137; }
.care-login-btn:active { transform: scale(0.99); }
.care-login-btn i { font-size: 16px; }

/* ── Card footer ──────────────────────────────────────────── */
.care-card-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.care-footer-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
}
.care-secure-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}
.care-footer-secure i { font-size: 13px; color: #22c55e; }
.care-footer-right {
    font-size: 11px;
    color: #9ca3af;
}
