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

:root {
    --ink: #18323b;
    --muted: #62747a;
    --surface: #ffffff;
    --surface-soft: #f4f8f7;
    --line: #d9e5e2;
    --navy: #153b46;
    --teal: #137c79;
    --teal-dark: #0e625f;
    --coral: #d96f56;
    --shadow: 0 12px 30px rgba(21, 59, 70, 0.08);
}

body {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    background: #eef4f2;
    color: var(--ink);
    min-height: 100vh;
    padding: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Sidebar */
.navbar {
    background: var(--navy);
    padding: 2rem 0;
    width: 250px;
    min-height: 100vh;
    box-shadow: 8px 0 24px rgba(21, 59, 70, 0.14);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

.navbar h1 {
    color: #f4fbf9;
    font-size: 1.3rem;
    padding: 0 1.5rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 1.5rem;
    text-align: center;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.5rem;
    padding: 0 1rem;
}

.nav-menu li {
    width: 100%;
}

.nav-menu a {
    color: #c7d9d7;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.06);
    display: block;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--teal);
    color: #ffffff;
    transform: translateX(3px);
}

/* Main Content */
main {
    flex: 0 1 auto;
    padding: 2rem;
    margin-left: 250px;
    width: calc(100% - 250px);
    max-width: calc(100% - 250px);
    min-width: 0;
    min-height: 100vh;
}

main > h2 {
    color: var(--ink);
    font-size: clamp(1.7rem, 2.2vw, 2.4rem);
    letter-spacing: 0;
    margin-bottom: 0.25rem;
}

.welcome {
    background: var(--surface);
    padding: 2rem;
    border-radius: 18px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-left: 5px solid var(--teal);
}

.welcome h2 {
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.welcome p {
    color: var(--muted);
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-width: 0;
}

.card {
    background: #ffffff;
    padding: 0 1.5rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(21, 59, 70, 0.15);
}

.card h3 {
    color: var(--ink);
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.card-media {
    display: block;
    width: calc(100% + 3rem);
    height: 150px;
    margin-left: -1.5rem;
    object-fit: cover;
    border-bottom: 1px solid #e2e2e2;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--teal);
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--teal);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--teal-dark);
}

.btn-secondary {
    background: #a0a0a0;
    border-color: #909090;
}

.btn-secondary:hover {
    background: #b0b0b0;
}

.btn-danger {
    background: #c0c0c0;
    border-color: #b0b0b0;
}

.btn-danger:hover {
    background: #d0d0d0;
}

.btn-success {
    background: #b0b0b0;
    border-color: #a0a0a0;
}

.btn-success:hover {
    background: #c0c0c0;
}

/* Stats */
.stats {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.stats h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat {
    background: var(--surface-soft);
    color: var(--ink);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--line);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

.module-layout {
    display: block;
    margin-top: 1.5rem;
    min-width: 0;
}

.panel {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden;
    min-width: 0;
}

.panel-form {
    display: none;
}

.panel-list {
    min-height: 100%;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.list-header h3 {
    margin: 0;
}

/* Forms */
form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: none;
    max-width: none;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.15rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: inherit;
    background-color: #fbfdfc;
    color: var(--ink);
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--teal);
    background-color: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.7fr) minmax(260px, 360px);
    gap: 1.5rem;
    align-items: start;
}

.calendar-main {
    min-width: 0;
}

.calendar-sidebar {
    background: #ffffff;
    border: 1px solid #d5d5d5;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.calendar-sidebar h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.upcoming-events {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.upcoming-item {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #7d7d7d;
    border-radius: 10px;
    padding: 0.8rem 0.8rem 0.7rem;
}

.upcoming-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.upcoming-toggle {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #333;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.upcoming-meta {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.upcoming-detail {
    display: none;
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 1px solid #ddd;
    color: #555;
    font-size: 0.8rem;
    line-height: 1.5;
}

.upcoming-item.expanded .upcoming-detail {
    display: block;
}

.upcoming-days {
    display: inline-block;
    margin-top: 0.35rem;
    background: #ececec;
    color: #333;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.upcoming-empty {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.calendar-panel {
    background: #f2f2f2;
    border: 1px solid #d5d5d5;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 1rem 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    min-height: 42px;
}

.calendar-toolbar h3 {
    font-size: 1.15rem;
    color: #1a1a1a;
    text-transform: capitalize;
    font-weight: 700;
}

.weekday-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(70px, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #444;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(70px, 1fr));
    gap: 0.35rem;
}

.calendar-day {
    min-height: 120px;
    background: #f0f0f0;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

.calendar-day.empty {
    background: rgba(255, 255, 255, 0.12);
    border-style: dashed;
    border-color: #d8d8d8;
}

.calendar-day.today {
    border-color: #7a7a7a;
    background: #ececec;
}

.day-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.1rem;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 0;
}

.event-badge {
    display: inline-block;
    font-size: 0.62rem;
    padding: 0.2rem 0.42rem;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    font-weight: 500;
}

.event-badge.proyecto { background: #5c8ef4; }
.event-badge.plan { background: #3ab07b; }
.event-badge.auditoria { background: #af75f2; }
.event-badge.nc { background: #e9895d; }
.event-badge.manual { background: #686868; }

.event-more {
    font-size: 0.7rem;
    color: #555;
    font-weight: 600;
    margin-top: 0.1rem;
}

.calendar-form {
    display: block;
    max-width: 720px;
    margin: 1.5rem auto 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.list-container {
    margin-top: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.compact-list-item {
    display: flex;
    align-items: flex-start;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

thead {
    background: #d0d0d0;
    color: #1a1a1a;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background-color: #f9f9f9;
}

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

/* Alert Messages */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: min(420px, calc(100vw - 40px));
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* List Container */
.list-container {
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
}

.list-item {
    background: var(--surface-soft);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--teal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-content h3 {
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.list-item-content p {
    color: var(--muted);
    font-size: 0.9rem;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

.compact-record-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.compact-record-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 20, 20, 0.08);
    border-color: #6e6e6e;
}

.record-metric {
    min-width: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e6f2ef;
    border: 1px solid #c7e1db;
    border-radius: 14px;
    padding: 0.8rem 0.7rem;
    color: #1d1d1d;
    text-align: center;
}

.record-metric-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.record-metric-link:hover {
    background: #d9ece7;
    border-color: var(--teal);
    transform: translateY(-2px);
}

.record-metric-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--teal-dark);
}

.record-metric-label {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a6a6a;
}

.module-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    max-width: 100%;
}

.toolbar-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 360px;
    min-width: 320px;
}

.toolbar-filter {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 1 auto;
    max-width: 100%;
}

.toolbar-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.toolbar-search input,
.toolbar-filter select {
    min-width: 200px;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 0.92rem;
    max-width: 100%;
}

.toolbar-search input {
    flex: 1;
    min-width: 0;
}

.toolbar-filter select {
    max-width: 240px;
}

.toolbar-search input:focus,
.toolbar-filter select:focus {
    outline: 3px solid rgba(19, 124, 121, 0.15);
    border-color: var(--teal);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.kanban-column {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    min-height: 320px;
}

.kanban-column h4 {
    margin-bottom: 0.9rem;
    color: var(--ink);
    font-size: 1rem;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.kanban-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: 0 5px 14px rgba(21, 59, 70, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(21, 59, 70, 0.13);
}

.kanban-card h5 {
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.98rem;
}

.kanban-card p {
    margin: 0.2rem 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.kanban-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: var(--teal);
}

.kanban-count {
    display: inline-block;
    margin: 0.5rem 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.calendar-panel,
.calendar-sidebar,
.calendar-form {
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.calendar-panel {
    background: var(--surface);
}

.calendar-sidebar {
    background: var(--surface);
}

.calendar-form {
    border: 1px solid var(--line);
}

.kanban-column.empty .kanban-cards {
    min-height: 100px;
}

.detail-modal-content {
    width: min(600px, 100%);
}

.detail-content {
    display: grid;
    gap: 0.8rem;
    color: #333;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #efefef;
}

.detail-row strong {
    color: #1a1a1a;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .module-layout {
        display: block;
    }

    .kanban-board {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .cards-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .navbar {
        width: 100%;
        min-height: auto;
        position: static;
        padding: 1rem 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar h1 {
        font-size: 1.2rem;
        padding: 0 1rem 0 1rem;
        margin-bottom: 0;
        border-bottom: none;
    }

    .nav-menu {
        flex-direction: row;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .nav-menu li {
        width: auto;
    }

    .nav-menu a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    main {
        margin-left: 0;
        padding: 1rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-item-actions {
        margin-top: 1rem;
        width: 100%;
    }
}


/* Sidebar User Session Box */
.nav-user-box {
    margin-top: auto;
    padding: 1.25rem 1rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-user-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-user-name {
    color: #f4fbf9;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-email {
    color: #a9c4c1;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #f4fbf9;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-logout:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: #ffffff;
}

/* Login Page */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5efec 0%, #eef4f2 55%, #dfece9 100%);
    padding: 1.5rem;
}

.login-wrapper {
    width: 100%;
    max-width: 900px;
}

.login-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(21, 59, 70, 0.16);
    border: 1px solid var(--line);
}

.login-brand {
    background: linear-gradient(155deg, var(--navy) 0%, #104b53 55%, var(--teal-dark) 100%);
    color: #f4fbf9;
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #dff5f1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1.15rem;
}

.login-brand h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #ffffff;
}

.login-brand p {
    color: #cde1df;
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.login-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-features li {
    position: relative;
    padding-left: 1.45rem;
    color: #e6f4f2;
    font-size: 0.9rem;
    line-height: 1.4;
}

.login-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #6ce0d6;
    font-weight: 700;
}

.login-form-panel {
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
}

.login-header {
    margin-bottom: 1.75rem;
}

.login-header h2 {
    color: var(--ink);
    font-size: 1.65rem;
    margin-bottom: 0.4rem;
}

.login-header p {
    color: var(--muted);
    font-size: 0.93rem;
}

.login-form {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

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

.password-field input {
    padding-right: 5.2rem;
}

.password-toggle {
    position: absolute;
    right: 0.55rem;
    background: transparent;
    border: none;
    color: var(--teal);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.password-toggle:hover {
    background: var(--surface-soft);
    color: var(--teal-dark);
}

.login-error {
    display: none;
    margin-bottom: 1.1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 9px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-size: 0.88rem;
    font-weight: 600;
}

.login-error.visible {
    display: block;
}

.login-submit-btn {
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.88rem 1.4rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .nav-user-box {
        margin-top: 0;
        padding: 0 1rem;
        border-top: none;
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
    }

    .nav-user-details {
        display: none;
    }

    .btn-logout {
        width: auto;
        white-space: nowrap;
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-brand,
    .login-form-panel {
        padding: 2rem 1.5rem;
    }
}
