/* ================================
   Goal Tracker
   Global UI
================================ */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #f7f8fa;
    color: #1f2937;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;
}


/* ================================
   Header
================================ */

.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1180px;
    min-height: 68px;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 32px;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #111827;
    font-size: 20px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;
}

.brand-icon {
    font-size: 24px;
}


/* Main Navigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 8px 12px;

    color: #6b7280;
    font-size: 15px;
    font-weight: 500;

    text-decoration: none;
    border-radius: 8px;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.main-nav a:hover {
    background: #f3f4f6;
    color: #111827;
}


/* User Area */

.user-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 16px;

    font-size: 14px;
}

.username {
    color: #6b7280;
}

.logout-link {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.logout-link:hover {
    color: #111827;
}


/* ================================
   Main Page
================================ */

.page-container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 42px 24px 64px;
}


/* Temporary typography
   We'll refine this with Today UI.
================================ */

h1 {
    margin-top: 0;
    margin-bottom: 12px;

    color: #111827;
    font-size: 36px;
    line-height: 1.2;
}

h2 {
    color: #111827;
}

h3 {
    color: #111827;
}


/* ================================
   Flash Messages
================================ */

.flash {
    margin-bottom: 20px;
    padding: 12px 16px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.flash.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.flash.danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}


/* ================================
   Mobile
================================ */

@media (max-width: 700px) {

    .header-container {
        padding: 14px 18px;
        gap: 14px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 18px;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .main-nav a {
        flex: 1;
        text-align: center;
    }

    .user-nav {
        margin-left: auto;
    }

    .username {
        display: none;
    }

    .page-container {
        padding: 28px 18px 48px;
    }

    h1 {
        font-size: 28px;
    }
}

/* ================================
   Today Page
================================ */

.today-header {
    margin-bottom: 28px;
}

.page-eyebrow {
    margin: 0 0 8px;

    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.today-header h1 {
    margin-bottom: 8px;
}

.today-date {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.greeting-user {
    white-space: nowrap;
}

/* ================================
   Daily Summary
================================ */

.daily-summary {
    margin-bottom: 30px;
    padding: 24px 26px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    margin-bottom: 18px;
}

.summary-label {
    margin: 0 0 4px;

    color: #111827;
    font-size: 17px;
    font-weight: 700;
}

.summary-count {
    margin: 0;

    color: #6b7280;
    font-size: 14px;
}

.summary-percentage {
    color: #111827;
    font-size: 30px;
    font-weight: 750;
}


/* ================================
   Progress Bars
================================ */

.progress-track {
    width: 100%;
    height: 8px;

    overflow: hidden;

    background: #e5e7eb;
    border-radius: 999px;
}

.progress-track-large {
    height: 10px;
}

.progress-fill {
    height: 100%;

    background: #22c55e;
    border-radius: inherit;

    transition: width 0.3s ease;
}

.day-complete-message {
    margin: 12px 0 0;

    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}


/* ================================
   Activity Grid
================================ */

.activity-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


/* ================================
   Activity Card
================================ */

.activity-card {
    padding: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.activity-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.05);
}

.activity-completed {
    border-color: #bbf7d0;
}


/* Card Header */

.activity-card-header {
    margin-bottom: 26px;
}

.activity-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.activity-title {
    margin: 0;

    color: #111827;
    font-size: 20px;
}

.activity-goal {
    margin: 5px 0 0;

    color: #6b7280;
    font-size: 14px;
}

.completed-badge {
    padding: 5px 9px;

    background: #f0fdf4;

    color: #15803d;

    border: 1px solid #bbf7d0;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}


/* ================================
   Activity Progress
================================ */

.activity-progress {
    margin-bottom: 24px;
}

.progress-values {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 10px;
}

.current-value {
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.target-value,
.progress-unit {
    color: #6b7280;
    font-size: 14px;
}

.activity-percentage {
    color: #374151;
    font-size: 14px;
}

.progress-incomplete {
    background: #f59e0b;
}

/* ================================
   Activity Stats
================================ */

.activity-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-bottom: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px;

    background: #f9fafb;
    border-radius: 10px;
}

.stat-icon {
    font-size: 20px;
}

.stat div {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.stat strong {
    color: #111827;
    font-size: 14px;
}

.stat small {
    color: #9ca3af;
    font-size: 11px;
}


/* ================================
   Check-in
================================ */

.activity-checkin {
    display: flex;
    align-items: stretch;
    gap: 10px;

    padding-top: 20px;

    border-top: 1px solid #f0f1f3;
}

.value-input-group {
    min-width: 0;
    flex: 1;

    display: flex;
    align-items: center;

    background: #ffffff;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    overflow: hidden;
}

.value-input-group:focus-within {
    border-color: #9ca3af;
}

.progress-input {
    min-width: 0;
    width: 100%;

    padding: 10px 12px;

    color: #111827;
    font: inherit;

    border: 0;
    outline: none;
}

.input-unit {
    padding-right: 12px;

    color: #6b7280;
    font-size: 13px;
}


/* ================================
   Buttons
================================ */

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    background: #111827;
    color: #ffffff;

    border: 0;
    border-radius: 9px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.primary-button:hover {
    background: #374151;
}

.primary-button:active {
    transform: translateY(1px);
}

.full-button {
    width: 100%;
}


/* ================================
   Empty State
================================ */

.empty-state {
    padding: 60px 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    text-align: center;
}

.empty-icon {
    margin-bottom: 12px;
    font-size: 38px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    margin: 0 0 22px;
    color: #6b7280;
}


/* ================================
   Today Mobile
================================ */

@media (max-width: 760px) {

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

    .daily-summary {
        padding: 20px;
    }

    .summary-percentage {
        font-size: 26px;
    }

    .activity-card {
        padding: 20px;
    }
}


@media (max-width: 480px) {

    .today-header h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .summary-header {
        align-items: flex-start;
    }

    .activity-title-row {
        align-items: flex-start;
    }

    .activity-stats {
        grid-template-columns: 1fr 1fr;
    }

    .activity-checkin {
        flex-direction: column;
    }

    .primary-button {
        min-height: 42px;
    }

    .goal-activity-row {
        gap: 8px;
    }

    .activity-actions {
        margin-top: 2px;
    }

    .activity-details {
        row-gap: 5px;
    }

    .goal-meta-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .goal-card-header {
        gap: 16px;
    }
}

/* ================================
   Goals Page
================================ */

.goals-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 30px;
}

.goals-page-header h1 {
    margin-bottom: 8px;
}

.page-description {
    margin: 0;
    color: #6b7280;
}


/* ================================
   Goals Grid
================================ */

.goals-grid {
    display: grid;
    gap: 22px;
}


/* ================================
   Goal Card
================================ */

.goal-card {
    padding: 26px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 24px;
}

.goal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.goal-title {
    margin: 0;

    color: #111827;
    font-size: 22px;
}

.goal-category {
    margin: 6px 0 0;

    color: #6b7280;
    font-size: 14px;
}


/* ================================
   Goal Status
================================ */

.goal-status {
    display: inline-flex;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.goal-status-active {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.goal-status-completed {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.goal-status-paused {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}


/* ================================
   Goal Metadata
================================ */

.goal-meta {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 28px;
}

.goal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 12px 14px;

    background: #f9fafb;
    border-radius: 10px;
}

.meta-label {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.goal-meta-item strong {
    color: #374151;
    font-size: 14px;
}


/* ================================
   Secondary Button
================================ */

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 13px;

    background: #ffffff;
    color: #374151;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}

.secondary-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}


/* ================================
   Goal Activities
================================ */

.goal-activities {
    padding-top: 24px;
    border-top: 1px solid #f0f1f3;
}

.activities-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 14px;
}

.activities-heading h3 {
    margin: 0 0 3px;
    font-size: 16px;
}

.activities-heading p {
    margin: 0;

    color: #9ca3af;
    font-size: 12px;
}

.add-activity-link {
    color: #374151;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}

.add-activity-link:hover {
    color: #111827;
}


/* ================================
   Activity Rows
================================ */

.activity-list {
    border: 1px solid #e5e7eb;
    border-radius: 11px;

    overflow: hidden;
}

.goal-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 14px 16px;

    background: #ffffff;

    border-bottom: 1px solid #f0f1f3;
}

.goal-activity-row:last-child {
    border-bottom: 0;
}

.goal-activity-info {
    min-width: 0;
}

.goal-activity-title-row {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 4px;
}

.goal-activity-title {
    color: #111827;
    font-size: 14px;
}

.activity-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: #6b7280;
    font-size: 12px;
}

.frequency-badge {
    padding: 2px 7px;

    background: #f3f4f6;
    border-radius: 999px;

    color: #4b5563;

    font-size: 11px;
    font-weight: 600;
}


/* ================================
   Archived Activity
================================ */

.archived-activity {
    background: #fafafa;
}

.archived-activity .goal-activity-info {
    opacity: 0.6;
}

.archived-badge {
    padding: 2px 7px;

    background: #f3f4f6;
    color: #6b7280;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
}


/* ================================
   Activity Actions
================================ */

.activity-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.activity-actions form {
    margin: 0;
}

.text-button {
    padding: 0;

    background: none;
    color: #4b5563;

    border: 0;

    font: inherit;
    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;
}

.text-button:hover {
    color: #111827;
}

.danger-text {
    color: #b91c1c;
}

.danger-text:hover {
    color: #7f1d1d;
}

.restore-text {
    color: #15803d;
}

.restore-text:hover {
    color: #166534;
}


/* ================================
   Activities Empty
================================ */

.activities-empty {
    padding: 20px;

    background: #f9fafb;

    border: 1px dashed #d1d5db;
    border-radius: 10px;

    color: #9ca3af;

    font-size: 13px;
    text-align: center;
}


/* ================================
   Goals Mobile
================================ */

@media (max-width: 700px) {

    .goals-page-header {
        align-items: flex-start;
    }

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


@media (max-width: 480px) {

    .goals-page-header {
        flex-direction: column;
    }

    .goals-page-header .primary-button {
        width: 100%;
    }

    .goal-card {
        padding: 20px;
    }

    .goal-card-header {
        flex-direction: column;
    }

    .secondary-button {
        width: 100%;
    }

    .goal-title-row {
        align-items: flex-start;
        justify-content: space-between;
    }

    .goal-meta {
        grid-template-columns: 1fr 1fr;
    }

    .activities-heading {
        align-items: flex-end;
    }

    .goal-activity-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .activity-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ================================
   Goal Tracker - Forms
================================ */

.form-page {
    max-width: 760px;
    margin: 0 auto;
}

.form-page-header {
    margin-bottom: 28px;
}

.form-page-header h1 {
    margin-bottom: 8px;
}

.form-card {
    padding: 32px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

/* Form Groups */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;
    margin-bottom: 22px;
}

.form-group label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.required {
    color: #dc2626;
}

/* Inputs */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;

    padding: 12px 14px;

    background: #ffffff;
    color: #111827;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    font: inherit;
    font-size: 14px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* Two-column Rows */

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Actions */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    padding-top: 22px;
    margin-top: 4px;

    border-top: 1px solid #f0f1f3;
}

/* Mobile */

@media (max-width: 600px) {

    .form-card {
        padding: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .primary-button,
    .form-actions .secondary-button {
        width: 100%;
        min-height: 44px;
    }
}

/* =========================================
   HISTORY PAGE
========================================= */

.history-page {
    max-width: 1180px;
    margin: 0 auto;
}

.history-page-header {
    margin-bottom: 24px;
}

.history-page-header h1 {
    margin: 6px 0 8px;
}

.history-date-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 24px;
}

.history-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.history-nav-button:hover {
    background: #f3f4f6;
}

.history-nav-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.history-selected-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.history-date-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
}

.history-selected-date strong {
    font-size: 16px;
    color: #111827;
}

.history-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.history-activity-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
}

.history-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.history-card-header h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #111827;
}

.history-goal-name {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.history-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.history-status.completed {
    background: #dcfce7;
    color: #15803d;
}

.history-status.pending {
    background: #fff7ed;
    color: #c2410c;
}

.history-target {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
}

.history-target strong {
    color: #111827;
}

.history-progress-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
}

.history-progress-info strong {
    color: #111827;
}

.history-progress-track {
    height: 9px;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.history-progress-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: inherit;
    transition: width 0.3s ease;
}

.history-progress-fill.completed {
    background: #22c55e;
}

.history-no-entry {
    font-size: 13px;
    color: #9ca3af;
    margin: 20px 0;
}

.history-entry-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.history-entry-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.history-entry-input input {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.history-entry-input span {
    font-size: 13px;
    color: #6b7280;
}

.history-save-button {
    padding: 11px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.history-save-button:hover {
    background: #1d4ed8;
}

.history-empty-state {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 60px 24px;
    text-align: center;
}

.history-empty-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.history-empty-state h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.history-empty-state p {
    margin: 0;
    color: #6b7280;
}

/* =========================================
   HISTORY RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .history-activity-grid {
        grid-template-columns: 1fr;
    }

    .history-date-navigation {
        padding: 16px;
        gap: 8px;
    }

    .history-nav-button {
        padding: 9px 11px;
        font-size: 12px;
    }

    .history-selected-date strong {
        font-size: 13px;
    }

    .history-date-label {
        font-size: 10px;
    }

}

@media (max-width: 480px) {

    .history-activity-card {
        padding: 18px;
    }

    .history-card-header {
        flex-wrap: wrap;
    }

    .history-entry-form {
        flex-wrap: wrap;
    }

    .history-entry-input {
        flex-basis: 100%;
    }

    .history-save-button {
        width: 100%;
    }

    .history-selected-date strong {
        font-size: 12px;
    }

    .history-date-navigation {
        padding: 12px 8px;
    }

}

/* =========================================
   AUTHENTICATION PAGES
========================================= */

.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 38px;
    margin-bottom: 14px;
}

.auth-header h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.auth-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-submit-button {
    width: 100%;
    padding: 13px 18px;
    margin-top: 6px;
    background: #2563eb;
    border: none;
    border-radius: 9px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-submit-button:hover {
    background: #1d4ed8;
}

.auth-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.auth-footer p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-bottom-text {
    margin-top: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

/* =========================================
   AUTHENTICATION RESPONSIVE
========================================= */

@media (max-width: 480px) {

    .auth-page {
        min-height: calc(100vh - 120px);
        padding: 24px 0;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .auth-header h1 {
        font-size: 23px;
    }

    .auth-header {
        margin-bottom: 26px;
    }

    .auth-logo {
        font-size: 34px;
    }

    .auth-form {
        gap: 18px;
    }

}

/* Authentication flash messages */

.page-container:has(.auth-page) > .flash {
    max-width: 440px;
    margin: 20px auto -20px;
}