/* SudCalendar - Modern Mobile-First Design */

:root {
    --color-running: #f87171;
    --color-trail: #8b5cf6;
    --color-marche: #f59e0b;
    --color-triathlon: #06b6d4;
    --color-autre: #6b7280;
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

html {
    font-size: 15px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #047857 100%);
    color: white;
    margin: -1rem -1rem 1.5rem -1rem;
    border-radius: 0 0 24px 24px;
}

.hero-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.hero-section p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 2.5rem 2rem;
        margin: -1rem -0.75rem 2rem -0.75rem;
    }
    .hero-section h1 {
        font-size: 2.25rem;
    }
}

/* Toolbar */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.view-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-btn:hover {
    color: var(--color-primary);
}

.view-btn.active {
    background: var(--color-primary);
    color: white;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.4rem 0.9rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.chip-running.active { background: var(--color-running); border-color: var(--color-running); }
.chip-trail.active { background: var(--color-trail); border-color: var(--color-trail); }
.chip-marche.active { background: var(--color-marche); border-color: var(--color-marche); }
.chip-triathlon.active { background: var(--color-triathlon); border-color: var(--color-triathlon); }

/* Calendar Wrapper */
.calendar-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .calendar-wrapper {
        padding: 1.5rem 2rem 2rem;
    }
}

/* FullCalendar Customization */
.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #1f2937;
}

@media (min-width: 768px) {
    .fc .fc-toolbar-title {
        font-size: 1.35rem !important;
    }
}

.fc .fc-button-primary {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
}

.fc .fc-button-primary:hover {
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}

.fc .fc-button-primary:disabled {
    opacity: 0.5 !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}

/* Spacing between calendar toolbar buttons */
.fc .fc-toolbar-chunk {
    display: flex;
    gap: 0.75rem;
}

.fc .fc-button-group {
    gap: 0.35rem;
    display: flex;
}

.fc .fc-button-group > .fc-button {
    margin: 0 !important;
}

.fc .fc-toolbar {
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .fc .fc-toolbar {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem !important;
        margin: 0 !important;
        text-align: center;
    }
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(16, 185, 129, 0.06) !important;
}

.fc .fc-scrollgrid {
    border: none !important;
    border-radius: 8px;
    overflow: hidden;
}

.fc .fc-scrollgrid td,
.fc .fc-scrollgrid th {
    border-color: #f3f4f6 !important;
}

.fc .fc-scrollgrid-section > td {
    border: none !important;
}

/* Calendar Subscribe Bar */
.calendar-subscribe-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.75rem 0 0.25rem;
}

/* Subscribe Button */
.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: var(--color-primary);
    color: white;
}

/* Subscribe Modal Options */
.subscribe-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscribe-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.subscribe-option:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.subscribe-option small {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
}

.subscribe-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscribe-icon-apple {
    background: #1f2937;
    color: white;
}

.subscribe-icon-google {
    background: #f3f4f6;
    color: #4285f4;
}

.subscribe-icon-copy {
    background: #f0fdf4;
    color: var(--color-primary);
}

.subscribe-url-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.subscribe-url-box input {
    font-size: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex: 1;
    min-width: 0;
}

.subscribe-url-box .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.subscribe-help {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    line-height: 1.6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-running { background: var(--color-running); }
.legend-trail { background: var(--color-trail); }
.legend-marche { background: var(--color-marche); }
.legend-autre { background: var(--color-autre); }

/* Calendar events styling */
.fc-event {
    cursor: pointer !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    padding: 3px 6px !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    margin: 1px 2px !important;
}

.fc-event:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
}

.fc-event .fc-event-main {
    padding: 0 !important;
    overflow: hidden;
}

/* Custom event content */
.fc-custom-event {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    line-height: 1.2;
}

.fc-custom-event-title {
    font-weight: 600 !important;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.fc-custom-event-location {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.fc-event.event-running {
    background: var(--color-running) !important;
    border-left-color: #ef4444 !important;
}
.fc-event.event-trail {
    background: var(--color-trail) !important;
    border-left-color: #7c3aed !important;
}
.fc-event.event-marche {
    background: var(--color-marche) !important;
    border-left-color: #d97706 !important;
}
.fc-event.event-autre {
    background: var(--color-autre) !important;
    border-left-color: #4b5563 !important;
}

/* Day cells */
.fc .fc-daygrid-day {
    transition: background-color 0.2s ease;
}

.fc .fc-daygrid-day:hover {
    background-color: rgba(16, 185, 129, 0.04) !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 100px;
}

@media (min-width: 768px) {
    .fc .fc-daygrid-day-frame {
        min-height: 110px;
    }
}

.fc .fc-daygrid-day-top {
    padding: 4px 8px;
}

.fc .fc-daygrid-day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    padding: 4px 8px !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc .fc-day-today .fc-daygrid-day-number {
    background: var(--color-primary);
    color: white !important;
}

/* More events link */
.fc .fc-daygrid-more-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.1);
}

.fc .fc-daygrid-more-link:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Week day headers */
.fc .fc-col-header-cell {
    padding: 12px 0 !important;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb !important;
}

.fc .fc-col-header-cell-cushion {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Popover for more events */
.fc .fc-popover {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: none;
}

.fc .fc-popover-header {
    background: var(--color-primary);
    color: white;
    padding: 8px 12px;
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0;
}

.fc .fc-popover-body {
    padding: 8px;
}

/* Event Grid (List View) */
.event-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .event-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Event Card */
.event-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card .event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-width: 70px;
    background: #f9fafb;
}

.event-card .event-date-block .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.event-card .event-date-block .month {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-card .event-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card .event-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.event-card .event-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.event-card .event-distances {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0.35rem 0 0 0;
}

.event-card .event-type-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.event-card.type-running .event-type-indicator { background: var(--color-running); }
.event-card.type-trail .event-type-indicator { background: var(--color-trail); }
.event-card.type-marche .event-type-indicator { background: var(--color-marche); }
.event-card.type-triathlon .event-type-indicator { background: var(--color-triathlon); }
.event-card.type-autre .event-type-indicator { background: var(--color-autre); }

/* Badges */
.badge-running { background: var(--color-running) !important; }
.badge-trail { background: var(--color-trail) !important; }
.badge-marche { background: var(--color-marche) !important; }
.badge-triathlon { background: var(--color-triathlon) !important; }
.badge-autre { background: var(--color-autre) !important; }

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
}

.event-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.event-detail-row svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.event-description {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Success Card */
.success-card {
    text-align: center;
    background: white;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    margin: 2rem auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-card h3 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.success-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Waze Button */
.btn-waze {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #33ccff;
    color: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-waze:hover {
    background: #00b0e8;
    color: white;
    transform: scale(1.1);
}

/* GPX Stats */
.gpx-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gpx-stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.gpx-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.gpx-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: transparent;
    border-top: none !important;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer .container {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    color: var(--color-primary) !important;
}

.nav-link {
    color: #4b5563 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

/* Submit Form Styles */
.submit-form .card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.submit-form .card-header {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    font-weight: 600;
}

.submit-form .form-control,
.submit-form .form-select {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 0.6rem 0.9rem;
}

.submit-form .form-control:focus,
.submit-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btn-success {
    background: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 8px;
    font-weight: 500;
}

.btn-success:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Admin styles */
.admin-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: none;
    border-left: 4px solid #f59e0b;
}

.admin-card.approved {
    border-left-color: var(--color-primary);
}

/* Focus states */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-section {
        padding: 1.25rem 0.75rem 1rem;
        margin: -1rem -0.5rem 1rem -0.5rem;
        border-radius: 0 0 16px 16px;
    }

    .hero-section h1 {
        font-size: 1.35rem;
    }

    .hero-section p {
        font-size: 0.85rem;
    }

    .toolbar {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .filter-chips {
        gap: 0.35rem;
    }

    .chip {
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
    }

    .calendar-legend {
        gap: 0.6rem;
        padding: 0.5rem 0 0.25rem;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .legend-dot {
        width: 8px;
        height: 8px;
    }

    .btn-subscribe {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .btn-subscribe span {
        display: inline;
    }

    .calendar-wrapper {
        padding: 0.5rem;
        border-radius: 10px;
    }

    /* Calendar compact mobile view */
    .fc .fc-daygrid-day-frame {
        min-height: 60px;
        padding: 0;
    }

    .fc .fc-daygrid-day-top {
        padding: 2px 4px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.7rem;
        width: 22px;
        height: 22px;
        padding: 2px !important;
    }

    .fc .fc-col-header-cell {
        padding: 6px 0 !important;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.65rem;
    }

    /* Events as compact dots on mobile */
    .fc-event {
        padding: 1px 3px !important;
        margin: 0px 1px !important;
        border-radius: 4px !important;
        border-left-width: 0 !important;
    }

    .fc-custom-event {
        flex-direction: row;
        gap: 0;
    }

    .fc-custom-event-title {
        font-size: 0.6rem;
        font-weight: 600;
    }

    .fc-custom-event-location {
        display: none;
    }

    .fc .fc-daygrid-more-link {
        font-size: 0.65rem;
        padding: 1px 3px;
    }

    /* Modal compact on mobile */
    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-body {
        padding: 0.75rem 1rem;
    }

    .modal-body .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .event-detail-row {
        margin-bottom: 0.4rem;
        font-size: 0.85rem;
    }

    .event-description {
        padding: 0.5rem;
        font-size: 0.8rem;
        margin-top: 0.5rem !important;
    }

    .modal-footer {
        padding: 0.5rem 1rem;
    }

    .modal-footer .btn {
        flex: 1;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Event cards compact on mobile */
    .event-card .event-date-block {
        min-width: 55px;
        padding: 0.75rem 0.5rem;
    }

    .event-card .event-date-block .day {
        font-size: 1.25rem;
    }

    .event-card .event-info {
        padding: 0.75rem;
    }

    .event-card .event-title {
        font-size: 0.9rem;
    }

    .event-card .event-location {
        font-size: 0.8rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .fc .fc-daygrid-day-frame {
        min-height: 50px;
    }

    .fc-custom-event-title {
        font-size: 0.55rem;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.65rem;
        width: 20px;
        height: 20px;
    }

    .filter-chips {
        justify-content: center;
    }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
    .fc-event {
        min-height: 20px !important;
    }

    .chip {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .view-btn {
        min-height: 40px;
        min-width: 40px;
        justify-content: center;
    }

    .modal-footer .btn {
        min-height: 44px;
        font-size: 0.95rem;
    }
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #047857 50%, #065f46 100%);
    margin: -1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.login-icon svg {
    color: white;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin: 0;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.login-card .form-floating > .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    height: 56px;
}

.login-card .form-floating > .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.login-card .form-floating > label {
    color: #6b7280;
}

.login-card .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: white;
}

.login-card .alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-icon {
        width: 64px;
        height: 64px;
    }

    .login-icon svg {
        width: 32px;
        height: 32px;
    }
}
