/* Custom Styles for Dreamland Inventory Management System */

:root {
    --sidebar-width: 250px;
    --sidebar-width-compact: 220px;
    --topbar-height: 56px;
    --content-padding: 1.5rem;
    --touch-min: 44px;
    --brand-primary: #2c3e50;
    --brand-accent: #3498db;
    --brand-surface: #ffffff;
    --brand-border: #e2e8f0;
    --brand-muted: #64748b;
    --brand-heading: #1e293b;
    --brand-alert: #b45309;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    background: #2c3e50;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    z-index: 1040;
}

.sidebar-header {
    position: relative;
    padding: 20px;
    background: #1a252f;
}

.sidebar-brand {
    position: relative;
    padding: 0.85rem 0.75rem 0.75rem;
    background: #1a252f;
    text-align: center;
    flex-shrink: 0;
    max-height: 140px;
}

.sidebar-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 0.25rem 1.75rem 0.15rem 0.25rem;
    gap: 0.15rem;
}

.sidebar-brand-link:hover {
    color: #fff;
    opacity: 0.95;
}

.sidebar-brand-logo {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.sidebar-brand-subtitle {
    font-size: 0.72rem;
    color: #95a5a6;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 0.85rem 1rem 1rem;
    background: #1a252f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.sidebar-footer-text {
    font-size: 0.68rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-footer-brand {
    font-size: 0.78rem;
    font-weight: 600;
    color: #bdc3c7;
    line-height: 1.35;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    padding-right: 2rem;
}

.sidebar-header small {
    color: #95a5a6;
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

.sidebar-close {
    position: absolute;
    top: 0.75rem;
    right: 0.5rem;
    color: #bdc3c7 !important;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
}

.sidebar-close:hover {
    color: #fff !important;
}

.sidebar ul.components {
    padding: 12px 0 20px;
    border-bottom: 1px solid #47748b;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: #fff;
    background: #34495e;
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    flex-shrink: 0;
}

.sidebar ul li ul {
    background: #1a252f;
    padding-left: 0;
}

.sidebar ul li ul li a {
    padding-left: 50px;
    font-size: 0.9rem;
    min-height: 40px;
}

.sidebar-backdrop {
    display: none;
}

/* Main content */
#content {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    z-index: 1030;
}

.top-navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--topbar-height);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.top-navbar-start,
.top-navbar-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.top-navbar-end {
    margin-left: auto;
    flex-shrink: 0;
}

.top-navbar-toggle {
    width: var(--touch-min);
    height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.top-navbar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
}

.top-navbar-user {
    max-width: 100%;
    min-height: 38px;
}

.top-navbar-username {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.division-select-form {
    gap: 0.5rem;
    max-width: 16rem;
}

.division-select-label {
    color: #6c757d;
    white-space: nowrap;
}

.division-select-form .form-select {
    min-width: 9rem;
    max-width: 12rem;
}

.top-navbar-division {
    padding: 0 1rem 0.65rem;
    border-top: 1px solid #eef1f4;
    background: #fafbfc;
}

.division-select-form-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.division-select-form-mobile .form-select {
    flex: 1;
    min-width: 0;
}

.main-content {
    flex: 1;
    min-height: 0;
    padding: var(--content-padding);
    width: 100%;
    max-width: 100%;
}

.app-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--brand-border);
    background: var(--brand-surface);
    padding: 0.65rem var(--content-padding);
}

.app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: var(--brand-muted);
    text-align: center;
}

.app-footer-inner strong {
    color: var(--brand-heading);
    font-weight: 600;
}

.app-footer-sep {
    color: #cbd5e1;
}

@media (max-width: 575.98px) {
    .app-footer-sep {
        display: none;
    }

    .app-footer-inner {
        flex-direction: column;
        gap: 0.15rem;
    }
}

/* Page headers (dashboard, lists, forms) */
.page-header,
.main-content > .container-fluid > .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-header h2,
.main-content > .container-fluid > .d-flex.justify-content-between h2 {
    font-size: clamp(1.15rem, 3.5vw, 1.65rem);
    margin-bottom: 0;
    line-height: 1.3;
}

.page-header .btn,
.main-content > .container-fluid > .d-flex.justify-content-between .btn {
    white-space: nowrap;
}

/* Dashboard — consistent neutral palette */
.stat-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    box-shadow: none;
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card-label {
    color: var(--brand-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.stat-card-value {
    color: var(--brand-heading);
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.stat-card-icon {
    color: var(--brand-primary);
    opacity: 0.35;
    font-size: clamp(1.75rem, 5vw, 2.75rem) !important;
    line-height: 1;
}

.stat-card-alert {
    border-left: 3px solid var(--brand-alert);
}

.stat-card-alert .stat-card-icon {
    opacity: 0.55;
    color: var(--brand-alert);
}

.section-card .card-header {
    background: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-heading);
    font-weight: 600;
    padding: 0.875rem 1.25rem;
}

.section-card .card-header h5 {
    font-size: 0.95rem;
    margin: 0;
}

.section-card .card-header i {
    color: var(--brand-muted);
    margin-right: 0.35rem;
}

.section-card-header {
    background: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-heading);
    padding: 1.25rem;
}

.section-card-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-heading);
}

.section-card-header i {
    color: var(--brand-muted);
}

.badge-division {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 500;
}

.badge-status {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    background: #f1f5f9;
    color: var(--brand-muted);
    border: 1px solid var(--brand-border);
}

.badge-status-posted,
.badge-status-create {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.badge-status-approved,
.badge-status-update {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.badge-status-draft,
.badge-status-secondary {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.badge-status-cancelled,
.badge-status-delete,
.badge-status-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.badge-status-post {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Dashboard charts */
.chart-card .card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.chart-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-wrap-lg {
    height: 320px;
}

.chart-wrap-sm {
    height: 240px;
}

.chart-subtitle {
    color: var(--brand-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.report-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    background: var(--brand-surface);
    color: var(--brand-heading);
    text-decoration: none;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: var(--touch-min);
}

.report-link-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    color: var(--brand-primary);
}

.report-link-card i {
    color: var(--brand-muted);
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .chart-wrap {
        height: 240px;
    }

    .chart-wrap-lg {
        height: 260px;
    }
}

/* Documentation page */
.docs-intro .lead {
    font-size: 1.05rem;
    color: var(--brand-heading);
}

.docs-page {
    max-width: 1200px;
    margin: 0 auto;
}

.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.docs-toc {
    position: sticky;
    top: calc(var(--topbar-height) + 1rem);
}

.docs-toc-nav .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: var(--brand-muted);
}

.docs-toc-nav .list-group-item:hover {
    color: var(--brand-primary);
    background: #f8fafc;
}

.docs-content {
    min-width: 0;
}

.docs-section {
    margin-bottom: 1.25rem;
}

.docs-section:last-child {
    margin-bottom: 0;
}

.docs-subheading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-heading);
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
}

.docs-subheading:first-child {
    margin-top: 0;
}

.docs-steps {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.docs-steps li {
    margin-bottom: 0.35rem;
}

.docs-table {
    font-size: 0.9rem;
}

.docs-table thead {
    background: #f8fafc;
}

.docs-note {
    background: #f8fafc;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.docs-faq dt {
    font-weight: 600;
    color: var(--brand-heading);
    margin-top: 1rem;
}

.docs-faq dt:first-child {
    margin-top: 0;
}

.docs-faq dd {
    color: var(--brand-muted);
    margin-bottom: 0.5rem;
}

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

    .docs-toc {
        position: static;
    }

    .docs-toc-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0.75rem;
    }

    .docs-toc-nav .list-group-item {
        border: 1px solid var(--brand-border);
        border-radius: 6px;
        flex: 0 1 auto;
    }
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    font-weight: 600;
}

.card-body {
    padding: 1rem;
}

@media (min-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
}

/* Stat cards on dashboard */
.card .stat-card-icon {
    font-size: clamp(1.75rem, 5vw, 2.75rem) !important;
}

.card h2.mb-0,
.card .stat-card-value {
    font-size: clamp(1.35rem, 4vw, 2rem);
}

/* Tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.table {
    background: white;
    margin-bottom: 0;
}

.table thead {
    background: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table td .btn-sm {
    padding: 0.25rem 0.45rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.main-content .card .row.g-3 > [class*="col-"] .btn {
    min-height: var(--touch-min);
}

@media (min-width: 768px) {
    .main-content .card .row.g-3 > [class*="col-"] .btn {
        min-height: auto;
    }
}

/* Buttons */
.btn {
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Pagination */
.list-pagination {
    border-top: 1px solid var(--brand-border);
    padding-top: 1rem;
}

.pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.pagination .page-link {
    min-width: 2.25rem;
    text-align: center;
    color: var(--brand-heading);
    border-color: var(--brand-border);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.pagination .page-link:hover {
    color: var(--brand-primary);
    background-color: #f8fafc;
}

@media (max-width: 575.98px) {
    .list-pagination .pagination .page-item:not(.active):nth-child(n+3):nth-last-child(n+3) {
        display: none;
    }
}

/* Tablet and below — overlay sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1035;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .sidebar-backdrop.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    :root {
        --content-padding: 1rem;
    }

    .top-navbar-username {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    :root {
        --content-padding: 0.75rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.65rem;
        vertical-align: middle;
    }

    .table td .btn-sm + .btn-sm {
        margin-left: 0.15rem;
    }

    .list-group-item .d-flex {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .auth-toolbar .navbar-brand {
        font-size: 0.85rem;
    }

    .auth-toolbar-user-meta {
        display: none;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .page-header .btn,
    .main-content > .container-fluid > .d-flex.justify-content-between .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mini laptop / compact desktop */
@media (min-width: 992px) and (max-width: 1199.98px) {
    :root {
        --sidebar-width: var(--sidebar-width-compact);
        --content-padding: 1.15rem;
    }

    .sidebar {
        width: var(--sidebar-width-compact);
        min-width: var(--sidebar-width-compact);
        max-width: var(--sidebar-width-compact);
    }

    .sidebar ul li a {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 0.9rem;
    }

    .sidebar ul li ul li a {
        padding-left: 42px;
    }
}

/* Large desktop — comfortable max width for readability */
@media (min-width: 1400px) {
    .main-content > .container-fluid {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .sidebar-backdrop,
    .top-navbar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Colors */
.status-posted {
    color: #28a745;
}

.status-draft {
    color: #6c757d;
}

.status-cancelled {
    color: #dc3545;
}

.status-approved {
    color: #ffc107;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Auth pages (login, select division) */
.auth-body {
    min-height: 100vh;
    background: #f0f2f5;
}

.auth-body-login {
    background: #fff;
}

.auth-body-login .auth-main {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    max-width: none;
}

.auth-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.auth-main {
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
}

.auth-body:not(:has(.auth-toolbar)) .auth-main {
    min-height: 100vh;
}

.auth-messages {
    width: 100%;
    max-width: 420px;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.auth-card-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card-wrapper-wide {
    max-width: 560px;
}

.auth-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 12px;
}

.auth-division-option {
    cursor: pointer;
}

.auth-division-option:hover {
    background-color: #f8f9fa;
}

/* Login page — split layout */
.auth-login {
    display: grid;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 992px) {
    .auth-login {
        grid-template-columns: minmax(320px, 1fr) minmax(400px, 520px);
    }
}

.auth-login-brand {
    display: none;
    background: linear-gradient(145deg, #1a252f 0%, #2c3e50 45%, #34495e 100%);
    color: #ecf0f1;
    padding: 3rem;
}

@media (min-width: 992px) {
    .auth-login-brand {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.auth-login-brand-inner {
    max-width: 380px;
}

.auth-login-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
}

.auth-login-brand h1 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: #fff;
}

.auth-login-tagline {
    color: #bdc3c7;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.auth-login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-login-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0;
    color: #d5dbdb;
    font-size: 0.95rem;
}

.auth-login-features i {
    color: #52c41a;
    flex-shrink: 0;
}

.auth-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #f4f6f9;
}

@media (min-width: 992px) {
    .auth-login-panel {
        background: #fff;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.06);
    }
}

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

.auth-login-form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.auth-login-form-header i {
    font-size: 1.5rem;
    color: #3498db;
}

.auth-login-card {
    padding: 2rem 1.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
    .auth-login-panel .auth-login-card {
        box-shadow: none;
        padding: 0;
        background: transparent;
    }
}

.auth-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.35rem;
}

.auth-login-subtitle {
    color: #6c757d;
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
}

.auth-login-form .input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.auth-login-form .form-control {
    border-color: #dee2e6;
    padding: 0.625rem 0.875rem;
}

.auth-login-form .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.auth-login-submit {
    padding: 0.65rem 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.auth-login-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #adb5bd;
}

.auth-brand-logo {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
}

.auth-brand-logo-lg {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.auth-forgot-link {
    color: var(--brand-accent);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-login-single .auth-login-panel {
    min-height: 100vh;
    align-items: center;
}

.auth-developer-credit {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .auth-login-panel {
        padding: 1.25rem 1rem;
        align-items: flex-start;
    }

    .auth-login-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-login-title {
        font-size: 1.35rem;
    }

    .auth-messages {
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .auth-card-wrapper,
    .auth-card-wrapper-wide {
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .auth-card .card-body.p-4 {
        padding: 1.25rem !important;
    }
}

@media (max-width: 380px) {
    .auth-login-form-header span {
        font-size: 1rem;
    }
}