@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-hover: #1d4ed8;

    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --text: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --success: #16a34a;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;

    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 32px 64px rgba(15, 23, 42, 0.16);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* =========================
   LAYOUT
========================= */

.container {
    max-width: 1440px;
    margin: auto;
    padding: 0 28px;
}

/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.header h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1); }
}

/* =========================
   TOP BAR
========================= */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 36px 0 28px;
    gap: 20px;
}

.top-bar h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    line-height: 1.1;
}

.top-bar p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* =========================
   BUTTON
========================= */

.btn {
    border: none;
    cursor: pointer;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

/* =========================
   GRID
========================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    padding-bottom: 48px;
}

/* =========================
   CARD
========================= */

.bed-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.bed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

/* Status strips */
.bed-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 0 0 0 var(--radius-xl);
}

/* =========================
   ONLINE STATUS INDICATOR
========================= */

.device-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-left: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1; /* Default Offline */
    transition: var(--transition);
    position: relative;
}

.dot-online {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.dot-online::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 0.8; }
    80%, 100% { transform: scale(2.5); opacity: 0; }
}

.device-status span:last-child {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-subtle);
    text-transform: uppercase;
}

.text-online {
    color: var(--success) !important;
}

.status-normal::before { background: var(--success); }
.status-warning::before,
.status-nodrip-warning::before { background: var(--warning); }
.status-critical::before,
.status-nodrip-critical::before { background: var(--danger); }

/* critical card pulse border */
.status-critical,
.status-nodrip-critical {
    animation: card-pulse 2s ease infinite;
}

@keyframes card-pulse {
    0%, 100% { border-color: var(--border); }
    50% { border-color: #fecaca; }
}

/* =========================
   BED HEADER
========================= */

.bed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 8px;
}

.bed-header h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
}

/* =========================
   BADGE
========================= */

.badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-normal {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-warning,
.badge-nodrip-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge-critical,
.badge-nodrip-critical {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

/* =========================
   INFO
========================= */

.bed-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.info-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    font-family: 'DM Mono', monospace;
}

.info-value small {
    font-size: 11px;
    opacity: 0.6;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    margin-left: 2px;
}

.info-value.critical {
    color: var(--danger);
}

/* =========================
   DRIP ALERT
========================= */

.drip-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 16px 8px;
}

.drip-alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.drip-alert-critical {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
    animation: pulse-danger 1.8s ease infinite;
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
}

/* =========================
   NOTIFICATION BELL
========================= */

.notif-wrapper { position: relative; }

.notif-bell {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.notif-bell:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-color: #c7d2fe;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg);
    animation: badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* =========================
   NOTIFICATION PANEL
========================= */

.notif-panel {
    position: absolute;
    top: 54px;
    right: 0;
    width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: none;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
}

.notif-panel-open {
    display: block;
    animation: panel-appear 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes panel-appear {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-light);
}

.notif-panel-header h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.notif-panel-header-actions {
    display: flex;
    gap: 8px;
}

.notif-panel-body {
    max-height: 440px;
    overflow-y: auto;
}

.notif-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-subtle);
    font-size: 14px;
    font-weight: 500;
}

.notif-empty svg {
    display: block;
    margin: 0 auto 12px;
    opacity: 0.3;
}

.notif-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover { background: var(--bg-secondary); }

.notif-item-unread {
    border-left: 3px solid var(--primary);
    background: #eff6ff;
}

.notif-item-unread:hover { background: #dbeafe; }

.notif-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 8px;
}

.notif-time {
    font-size: 11px;
    color: var(--text-subtle);
    font-weight: 500;
    white-space: nowrap;
}

.notif-item-bed {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.notif-item-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.notif-item-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.notif-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.notif-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.notif-action-btn.delete:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

/* =========================
   TOAST
========================= */

.toast-container {
    position: fixed;
    top: 82px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    width: 360px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    pointer-events: all;

    opacity: 0;
    transform: translateX(70px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-warning { border-left: 4px solid var(--warning); }
.toast-critical { border-left: 4px solid var(--danger); }

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.toast-warning .toast-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.toast-critical .toast-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.toast-body { flex: 1; min-width: 0; }

.toast-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    transition: var(--transition);
    padding: 0;
}

.toast-close:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

/* =========================
   LOGIN
========================= */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    background-image: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 44px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* =========================
   FORM
========================= */

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* =========================
   ALERT
========================= */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    border: 1px solid;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

/* =========================
   USER CHIP
========================= */

.user-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-chip .username {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.user-chip a {
    font-size: 12px;
    color: var(--danger);
    font-weight: 600;
    text-decoration: none;
}

.user-chip a:hover { text-decoration: underline; }

/* =========================
   SYNC TIME
========================= */

.sync-time {
    font-size: 11px;
    color: var(--text-subtle);
    font-weight: 500;
    text-align: right;
    margin-top: 16px;
    font-family: 'DM Mono', monospace;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .top-bar h2 { font-size: 24px; }

    .dashboard-grid { grid-template-columns: 1fr; }

    .notif-panel {
        width: calc(100vw - 32px);
        right: -52px;
    }

    .toast {
        width: calc(100vw - 32px);
    }

    .toast-container {
        right: 16px;
        top: 78px;
    }
}

/* =========================
   PATIENT PAGE LAYOUT
========================= */

.page-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
}

/* =========================
   PANEL (FORM CARD)
========================= */

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
}

.panel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title svg {
    color: var(--primary);
}

/* =========================
   TABLE CARD
========================= */

.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #fafafa;
}

.table-card-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.patient-count {
    font-size: 12px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
}

/* =========================
   DATA TABLE
========================= */

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

.data-table thead tr {
    background: #f8fafc;
}

.data-table th {
    padding: 12px 24px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

.data-table td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #fcfcfc;
}

/* =========================
   CHIPS & BADGES
========================= */

.id-chip {
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'DM Mono', monospace;
}

.bed-chip {
    font-size: 13px;
    font-weight: 700;
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.gender-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-block;
}

.gender-l {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.gender-p {
    background: #fdf2f8;
    color: #9d174d;
    border: 1px solid #fbcfe8;
}

.patient-name {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}

.patient-age {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

/* =========================
   ACTIONS
========================= */

.btn-table-del, .btn-table-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-table-del {
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger);
}

.btn-table-del:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-table-edit {
    border: 1px solid var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    margin-right: 4px;
}

.btn-table-edit:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-edit-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-subtle);
    text-decoration: none;
    transition: var(--transition);
}

.btn-edit-small:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(1.1);
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    padding: 64px 20px;
    text-align: center;
    color: var(--text-subtle);
}

.empty-state svg {
    display: block;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 15px;
    font-weight: 600;
}

/* =========================
   PASSWORD EYE TOGGLE
========================= */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 44px;
    width: 100%;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease, background 0.18s ease;
    line-height: 1;
}

.eye-toggle:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.eye-toggle:focus {
    outline: none;
}

.eye-icon {
    display: block;
    pointer-events: none;
}