/* Design System & Base Style for Swiss Moto Portal (Light mockup theme) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f4f6f8;
    --bg-secondary: #ffffff;
    --accent-red: #d9161a;
    --navy-blue: #1b2537;
    --navy-hover: #26334d;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.06);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    width: 100%;
    padding: 2.5rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    object-fit: contain;
}

/* Main Layout */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 2400px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 1200px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1e293b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--accent-red);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 500;
}

/* Portal Grid */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 950px;
}

@media (min-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.portal-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(15, 23, 42, 0.03);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Left border effect for active Federation Card */
.portal-card.federation {
    border-left: 6px solid var(--navy-blue);
}

.portal-card.federation:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

/* Disabled Card (Espace Organisateur) */
.portal-card.disabled {
    opacity: 0.75;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.7);
}

.badge-upcoming {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f5f9;
    margin-bottom: 2rem;
    color: #475569;
}

.portal-card.disabled .card-icon-wrapper {
    background: #f8fafc;
    color: #94a3b8;
}

.card-icon-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--navy-blue);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.portal-card.disabled .card-title {
    color: #94a3b8;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.portal-card.disabled .card-description {
    color: #cbd5e1;
}

/* Premium card button */
.card-btn-navy {
    background: var(--navy-blue);
    color: white;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto;
}

.card-btn-navy:hover {
    background: var(--navy-hover);
}

.portal-card.disabled .card-btn-navy {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Auth Pages styles */
.back-portal-header {
    width: 100%;
    max-width: 480px;
    margin-bottom: 1rem;
    text-align: left;
}

.back-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.back-portal-link:hover {
    color: var(--navy-blue);
}

/* Auth Card layout */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-card-header {
    background: var(--navy-blue);
    padding: 3rem 2rem 2.5rem 2rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card-header .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 1.25rem;
}

.auth-card-title {
    font-size: 1.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.auth-card-subtitle {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-card-body {
    padding: 3rem 2.5rem;
    background: white;
}

.auth-card-body .form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.auth-card-body .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.6rem;
}

.auth-card-body .form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-card-body .form-input::placeholder {
    color: #94a3b8;
}

.auth-card-body .form-input:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(27, 37, 55, 0.08);
}

/* Password field with show/hide icon wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--navy-blue);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Submit button styling matching capture */
.btn-submit-navy {
    width: 100%;
    background: var(--navy-blue);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 10px 25px -10px rgba(27, 37, 55, 0.3);
}

.btn-submit-navy:hover {
    background: var(--navy-hover);
}

.btn-submit-navy:active {
    transform: scale(0.98);
}

.auth-card-footer-text {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Simple Full Width Footer */
footer {
    width: 100%;
    background: #0f172a;
    color: #94a3b8;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dashboard Layout & Sidebar */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

.sidebar-logo {
    max-height: 18px;
    object-fit: contain;
    margin-bottom: 2.5rem;
    align-self: center;
}

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

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-menu-item.active a {
    background: #fee2e2; /* light red */
    color: #d9161a;
}

.sidebar-menu-item a:hover:not(.active a) {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 1.5rem;
}

/* Language selector */
.lang-selector {
    display: flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.lang-btn {
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-btn-primary {
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-btn-primary:hover {
    background: #1f2937;
}

.sidebar-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-btn-secondary:hover {
    background: #e2e8f0;
}

.dashboard-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

/* Sidebar User Badges */
.sidebar-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.sidebar-badge {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
}

.badge-space-fede {
    background: #fee2e2;
    color: #d9161a;
}

.badge-space-org {
    background: #dbeafe;
    color: #2563eb;
}

.badge-role {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.badge-commission {
    background: #e0f2fe;
    color: #0369a1;
}


