/* Modern Start Page Redesign */
:root {
    --primary: hsl(250, 70%, 60%);
    --primary-hover: hsl(250, 70%, 50%);
    --secondary: hsl(180, 70%, 45%);
    --accent: hsl(320, 80%, 60%);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 30, 40, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', 'Inter', sans-serif;
}

body.start {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #0f0f13;
    overflow-x: hidden;
}

/* Background Overlay */
#video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.display-1 {
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Header Redesign */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

/* Override mobile.css legacy styles */
.start .logo {
    background-color: rgba(255, 255, 255, 0.95) !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
    padding: 8px 20px;
    border-radius: 50px;
    text-align: left;
    backdrop-filter: blur(5px);
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
    margin: 0 !important;
}

.logo p {
    color: #004298 !important;
    /* Brand blue color */
    font-size: 0.85rem !important;
    margin-left: 1rem !important;
    margin-bottom: 0 !important;
    display: inline-block;
    border-left: 1px solid #ddd;
    padding-left: 1rem;
    font-weight: 600;
    line-height: 1.2 !important;
    font-family: var(--font-main) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn-modern {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Login Form */
.login-card {
    padding: 2.5rem;
    max-width: 400px;
    margin-left: auto;
}

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

.form-control-modern {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    transition: var(--transition);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control-modern::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Benefits Grid */
.benefits-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 15, 19, 0) 0%, #0f0f13 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.start .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid var(--glass-border);
}

/* News Section */
.news-section {
    padding: 6rem 0;
    background: #0f0f13;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.news-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Footer */
footer {
    background: #0a0a0c;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Join / Registration Page */
.join-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    z-index: 2;
}

.join-header {
    margin-bottom: 2.5rem;
}

.join-header .display-4 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.join-header .lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.join-card {
    padding: 2.5rem;
}

/* Type Selector (Client / Distribution tabs) */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.type-option {
    cursor: pointer;
    margin: 0;
}

.type-option input {
    display: none;
}

.type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
}

.type-content svg {
    color: var(--text-muted);
    transition: var(--transition);
}

.type-content span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.type-option:hover .type-content {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.type-option.active .type-content,
.type-option input:checked + .type-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
}

.type-option.active .type-content svg,
.type-option input:checked + .type-content svg {
    color: var(--primary);
}

.type-option.active .type-content span:last-child,
.type-option input:checked + .type-content span:last-child {
    color: #fff;
}

/* Form Section Title */
.form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Modern Form Group */
.form-group-modern {
    margin-bottom: 0;
}

.form-label-modern {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Form Select Styling */
.form-select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-select-modern option {
    background: #1a1a24;
    color: #fff;
}

/* Textarea */
textarea.form-control-modern {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Modern */
.form-check-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input-modern {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.form-check-input-modern:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-check-input-modern:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-input-modern:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.form-check-label-modern {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 0.5rem;
}

.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
    display: block;
}

.form-control-modern.is-invalid {
    border-color: #f87171;
}

.form-control-modern.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

/* Alerts Modern */
.alert-modern {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: none;
}

.alert-modern.alert-danger {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
}

.alert-modern.alert-success {
    background: rgba(74, 222, 128, 0.15);
    color: #86efac;
}

/* Form Footer Link */
.text-primary-light {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.text-primary-light:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .login-card {
        margin: 2rem auto 0;
    }

    .join-section {
        padding: 100px 0 40px;
    }

    .join-header .display-4 {
        font-size: 2rem;
    }

    .join-card {
        padding: 1.5rem;
    }

    .type-selector {
        grid-template-columns: 1fr;
    }
}