/**
 * SPLASH PAGE V4 - MODERN INTERFACE STYLES
 * Semantic CSS for splash page registration interface
 */

* {
    box-sizing: border-box;
}

body {
    font-family: 'ChesnaGrotesk', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

footer { display: none; }
header { padding: 0; }

/* ==========================================
   SPLASH HERO CONTAINER & LAYOUT
   ========================================== */

.splash-hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    background-image: url('/public/images/backgrounds/sportsTrainingHockeyBackground.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content-wrapper {
    width: 100%;
    max-width: 28rem;    
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================
   HEADER SECTION (LOGO & WELCOME)
   ========================================== */

.hero-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-button:hover {
    opacity: 0.8;
}

.hero-logo {
    width: 9rem;
    height: 9rem;
    object-fit: contain;
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    margin: 0 0 0.5rem 0;
}

.welcome-subtitle {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================
   REGISTRATION FORM CARD
   ========================================== */

.registration-form-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.form-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease-in-out;
}

/* Animation classes for form card size changes */
.registration-form-card.expanding {
    transform: scale(1.02);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.3);
}

.registration-form-card.contracting {
    transform: scale(0.98);
}

.registration-form-card.size-transition {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================
   SPORT SELECTOR SECTION
   ========================================== */

.sport-selector-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-wrapper {
    position: relative;
}

/* Custom Dropdown Styles */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    height: 3rem;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #374151;
    user-select: none;
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    border-color: #9ca3af;
}

.custom-select-trigger:focus,
.custom-select.active .custom-select-trigger {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.custom-select-trigger.placeholder {
    color: #000;
}

.custom-select-arrow {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.custom-select.active .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.custom-select.active .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    display: block;
}

.custom-select-option:hover {
    background-color: #f3f4f6;
    border-radius: 0;
}

.custom-select-option.selected {
    background-color: #1f2937;
    color: #ffffff;
    border-radius: 0;
}

.custom-select-option:first-child {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.custom-select-option:last-child {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Hide the original select */
.sport-select {
    display: none;
}

/* Legacy styles for compatibility */
.select-arrow {
    display: none;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments for custom dropdown */
@media (max-width: 768px) {
    .custom-select-dropdown {
        max-height: 180px;
    }
    
    .custom-select-option {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .custom-select-trigger {
        height: 3.25rem;
        padding: 0.875rem 2.5rem 0.875rem 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .custom-select-dropdown {
        max-height: 160px;
    }
    
    .custom-select-option {
        padding: 0.875rem 0.75rem;
    }
}

/* ==========================================
   REGISTRATION TYPE TOGGLE
   ========================================== */

.registration-type-toggle {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.toggle-button {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    color: #64748b;
}

.toggle-button:hover {
    color: #1e293b;
    background-color: transparent;
}

.toggle-button.active:hover, .toggle-button.active {
    background-color: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}



/* ==========================================
   DYNAMIC FORM CONTAINER
   ========================================== */

.dynamic-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    min-height: 80px;
    transition: min-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.registration-form,
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.registration-form.hidden,
.login-form.hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

/* Hidden state for sport selector and toggle sections */
.sport-selector-section.hidden,
.registration-type-toggle.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(-10px);
}

.registration-form.fade-in,
.login-form.fade-in {
    animation: slideInFade 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.registration-form.fade-out,
.login-form.fade-out {
    animation: slideOutFade 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutFade {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

/* Height transition for different form states */
.dynamic-form-container.compact {
    min-height: 80px;
}

.dynamic-form-container.expanded {
    min-height: 80px;
}

.dynamic-form-container.large {
    min-height: 450px;
}

/* ==========================================
   FORM FIELDS & INPUTS
   ========================================== */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 300px;
    overflow: hidden;
}

.form-field.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0;
    padding: 0;
}

.form-field.slide-in {
    animation: fieldSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-field.slide-out {
    animation: fieldSlideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fieldSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes fieldSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease;
}

.form-input {
    width: 100%;
    height: 3rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    transform: translateY(0);
}

.form-input:focus,
.form-input:active {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

.form-input.success {
    border-color: #10b981;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ==========================================
   HONEYPOT FIELD - SPAM BOT PROTECTION
   ========================================== */

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    z-index: -1;
    /* Alternative hiding methods for more thorough concealment */
    clip: rect(0, 0, 0, 0);
    border: 0;
    margin: -1px;
    padding: 0;
}

.honeypot-field label {
    position: absolute;
    left: -9999px;
}

.honeypot-field input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    border: 0;
    background: transparent;
}

/* ==========================================
   PASSWORD CHECKLIST
   ========================================== */

.password-checklist {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.password-checklist.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
}

.password-checklist.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInChecklist 0.3s ease;
}

@keyframes slideInChecklist {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checklist-title {
    font-size: 0.625rem;
    font-weight: 500;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    position: relative;
    align-items: center;
    color:#6b7280;
    gap: 0.5rem;
    font-size: 0.625rem;
    line-height: 16px;
    padding-left: 25px;
    transition: all 0.2s ease;
}

.checklist-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.check-icon,
.x-icon {
    position: absolute;
    top: 0px;
    left: 0;
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.check-icon {
    fill: #10b981;
    opacity: 0;
    transform: scale(0.8);
}

.x-icon {
    fill: #6b7280;
    opacity: 1;
    transform: scale(1);
}

.checklist-text {
    color: #6b7280;
    transition: color 0.2s ease;
}

/* Valid state - show checkmark, hide X */
.checklist-item.valid .check-icon {
    opacity: 1;
    transform: scale(1);
}

.checklist-item.valid .x-icon {
    opacity: 0;
    transform: scale(0.8);
}

.checklist-item.valid .checklist-text {
    color: #10b981;
    font-weight: 500;
}

/* Invalid state - show X, hide checkmark */
.checklist-item.invalid .check-icon {
    opacity: 0;
    transform: scale(0.8);
}

.checklist-item.invalid .x-icon {
    opacity: 1;
    transform: scale(1);
}

.checklist-item.invalid .checklist-text {
    color: #6b7280;
    font-weight: 500;
}

/* Default state - show X, hide checkmark (for untested requirements) */
.checklist-item:not(.valid):not(.invalid) .check-icon {
    opacity: 0;
    transform: scale(0.8);
}

.checklist-item:not(.valid):not(.invalid) .x-icon {
    opacity: 0.4;
    transform: scale(0.9);
}

.checklist-item:not(.valid):not(.invalid) .checklist-text {
    color: #9ca3af;
}

/* ==========================================
   CHECKBOX & EXTENDED FORM STYLING
   ========================================== */

/* Checkbox Field Styling */
.checkbox-field {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #ffffff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #374151;
    line-height: 1.5;
    font-size:12px;
}

.checkbox-text .link-text {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkbox-text .link-text:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Back to login styling */
.back-to-login {
    text-align: center;
    margin-top: 1rem;
}

.back-to-login .link-text {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-to-login .link-text:hover {
    color: #374151;
}

/* Form transition animations */
.form-transition-enter {
    animation: formEnter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-transition-exit {
    animation: formExit 0.4s ease-in forwards;
}

@keyframes formEnter {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes formExit {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
}

/* ==========================================
   EMAIL VERIFICATION FORM
   ========================================== */

.verification-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.verification-form.hidden {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.verification-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verification-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    text-align: center;
}

.verification-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.verification-subtitle strong {
    color: #374151;
    font-weight: 500;
}

.verification-input {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    font-family: 'Courier New', Courier, monospace;
}

.verification-input:focus {
    letter-spacing: 0.15em;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.verification-actions .link-text {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.verification-actions .link-text:hover {
    color: #374151;
}

.verification-actions .link-text:first-child {
    color: #3b82f6;
    font-weight: 500;
}

.verification-actions .link-text:first-child:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ==========================================
   SELECT SPORT MESSAGE
   ========================================== */

.select-sport-message {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f8fafc;
    border-radius: 0.375rem;
    border: 1px dashed #cbd5e1;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 200px;
    overflow: hidden;
}

.select-sport-message p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
    transition: color 0.2s ease;
}

.select-sport-message.hidden {
    opacity: 0;
    transform: translateY(-15px);
    max-height: 0;
    padding: 0 1rem;
    margin: 0;
}

.select-sport-message.fade-in {
    animation: messageSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.select-sport-message.fade-out {
    animation: messageSlideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 200px;
    }
}

@keyframes messageSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 200px;
    }
    to {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        max-height: 0;
    }
}

/* ==========================================
   BUTTONS
   ========================================== */

.primary-button {
    width: 100%;
    height: 3rem;
    background-color: #000000;
    color: #ffffff;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    opacity: 1;
    max-height: 3rem;
    overflow: hidden;
}

.primary-button:hover:not(:disabled) {
    background-color: #1f2937;
    transform: translateY(0);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.primary-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.primary-button:disabled,
.primary-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: translateY(0);
}

.primary-button.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.primary-button.slide-in {
    animation: buttonSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.primary-button.slide-out {
    animation: buttonSlideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 3rem;
    }
}

@keyframes buttonSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 3rem;
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        max-height: 0;
    }
}

/* ==========================================
   SOCIAL LOGIN BUTTONS
   ========================================== */

.social-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0 1rem 0;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
}

.divider-text {
    background-color: #ffffff;
    color: #64748b;
    font-size: 0.75rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-button {
    width: 100%;
    height: 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.social-button:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.social-button:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.google-button:hover {
    background-color: #fef9f3;
    border-color: #4285F4;
}

.microsoft-button:hover {
    background-color: #f0f9ff;
    border-color: #00A4EF;
}

.apple-button {
    color: #1f2937;
}

.apple-button:hover {
    background-color: #f1f5f9;
    border-color: #1f2937;
}

.phone-button:hover {
    background-color: #f0fdf4;
    border-color: #059669;
}

/* ==========================================
   FORM MESSAGES & FEEDBACK
   ========================================== */

.form-message {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.visible {
    opacity: 1;
}

.form-message.error {
    color: #dc2626;
}

.form-message.success {
    color: #059669;
}

/* Specific styling for login message to ensure visibility */
#loginMessage {
    margin-bottom: 1rem;
    margin-top: 0;
}

#loginMessage.visible {
    opacity: 1 !important;
    display: block !important;
    max-height: 100px !important;
    overflow: visible !important;
}

#loginMessage:not(:empty) {
    opacity: 1;
    display: block;
    max-height: 100px;
    overflow: visible;
}

/* ==========================================
   FORGOT PASSWORD LINK
   ========================================== */

.forgot-password-link {
    text-align: left;
}

.link-text {
    font-size: 0.75rem;
    color: #64748b;    
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-text:hover {
    color: #000;
    text-decoration: underline;
}

/* ==========================================
   FORGOT PASSWORD MODAL
   ========================================== */

.forgot-password-modal {
    max-width: 450px;
}

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Override modal actions for forgot password form */
.forgot-password-form .modal-actions {
    margin-top: 1.5rem;
}

/* ==========================================
   HELP TEXT SECTION
   ========================================== */

.help-text-section {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.help-text {
    font-size: 0.75rem;
    color: #d1d5db;
    margin: 0;
}

.help-link {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.help-link:hover {
    color: #d1d5db;
}

/* ==========================================
   FOOTER
   ========================================== */

.splash-footer {
    display: block;    
    position: relative;
    z-index: 100;
    text-align: center;
    background-color: transparent;
    width: 100%;
}

.footer-copyright {
    font-size: 0.625rem; /* 10px */
    color: #d1d5db;
    margin: 0;
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet styles */
@media (max-width: 768px) {
    .splash-hero-container {
        padding: 0.75rem;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .hero-content-wrapper {
        max-width: 24rem;
    }
    
    .registration-form-card {
        padding: 1.5rem;
    }
    
    .hero-logo {
        width: 8rem;
        height: 8rem;
    }
    
    .welcome-title {
        font-size: 1.125rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .splash-hero-container {
        padding: 1rem;
    }
    
    .hero-content-wrapper {
        max-width: 100%;
    }
    
    .registration-form-card {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .welcome-section {
        margin-bottom: 1.5rem;
    }
    
    .hero-logo {
        width: 6rem;
        height: 6rem;
    }
    
    .welcome-title {
        font-size: 1rem;
    }
    
    .welcome-subtitle {
        font-size: 0.8rem;
    }
    
    .form-card-content {
        gap: 1.25rem;
    }
    
    .help-text-section {
        margin-top: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .splash-footer {
        bottom: 1rem;
    }
    
    /* Modal responsive styles for mobile */
    .modal-container {
        width: 95%;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header {
        padding: 1rem 1rem 0 1rem;
    }
    
    .modal-content {
        padding: 0 1rem 1rem 1rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .secondary-button,
    .modal-actions .primary-button {
        width: 100%;
    }
    
    .form-textarea {
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }
    
    /* Social button adjustments for mobile */
    .social-button {
        font-size: 0.8rem;
        height: 2.75rem;
    }
    
    .social-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .select-sport-message {
        padding: 1.5rem 0.75rem;
    }
    
    .select-sport-message p {
        font-size: 0.8rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .registration-form-card {
        padding: 1rem;
        margin: 0 0.25rem;
    }
    
    .toggle-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .form-input,
    .sport-select {
        height: 2.75rem;
        font-size: 0.8rem;
    }
    
    .primary-button {
        height: 2.75rem;
        font-size: 0.8rem;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    .registration-form-card {
        border: 2px solid #000;
    }
    
    .form-input,
    .sport-select {
        border: 2px solid #000;
    }
    
    .toggle-button.active {
        border: 2px solid #000;
    }
}

/* ==========================================
   CONTACT US MODAL
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-container {
    background-color: #ffffff;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 512px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.modal-enter .modal-container {
    animation: modalEnter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.modal-exit .modal-container {
    animation: modalExit 0.2s ease-in;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0 1.5rem;    
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.modal-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.modal-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.secondary-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

.secondary-button:active {
    transform: translateY(0.5px);
}

/* ==========================================
   FORM MESSAGE STYLES
   ========================================== */

.form-message {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    transition: none; /* No transition initially to prevent flash */
    display: none;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
}

.form-message.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
    max-height: 100px;
    margin-bottom: 0.75rem;
}

/* Enable transitions only when animating */
.form-message.show-animation,
.form-message.hide-animation {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-message.show-animation {
    animation: messageSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-message.hide-animation {
    animation: messageSlideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
        max-height: 0;
        margin-bottom: 0;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 100px;
        margin-bottom: 0.75rem;
    }
}

@keyframes messageSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 100px;
        margin-bottom: 0.75rem;
    }
    50% {
        opacity: 0.3;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
        max-height: 0;
        margin-bottom: 0;
    }
}

.form-message.error {
    background-color: #fefefe;
    border: 1px solid #fee2e2;
    color: #dc2626;
}

.form-message.success {
    background-color: #fefefe;
    border: 1px solid #dcfce7;
    color: #16a34a;
}

/* Modal-specific message styles */
.modal-container .form-message {
    position: relative;
    z-index: 1001;
    margin-top: 1rem;
    margin-bottom: 0;
}

.modal-container .form-message.visible {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    max-height: 100px !important;
}

/* Ensure modal messages animate properly */
.modal-overlay:not(.hidden) .form-message.show-animation {
    animation: modalMessageSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.modal-overlay:not(.hidden) .form-message.hide-animation {
    animation: modalMessageSlideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes modalMessageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 100px;
    }
}

@keyframes modalMessageSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 100px;
    }
    100% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        max-height: 0;
    }
}

/* Dark mode support for messages */
/*
@media (prefers-color-scheme: dark) {
    .form-message.error {
        background-color: #1f1f1f;
        border-color: #fee2e2;
        color: #fca5a5;
    }
    
    .form-message.success {
        background-color: #1f1f1f;
        border-color: #dcfce7;
        color: #86efac;
    }
}*/

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .splash-hero-container {
        background: white !important;
        color: black !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    .registration-form-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .primary-button {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
}

/* Legal Modal Styles */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.legal-modal .modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.legal-modal .modal-header {
    background-color: #ffffff;
    color: #1f2937;
    padding: 24px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    align-items: flex-start;
    justify-content: flex-start;
}

.legal-modal .modal-header .modal-title,
.legal-modal .modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'ChesnaGrotesk', sans-serif;
    padding-right: 40px;
}

.legal-modal .modal-header .last-updated,
.legal-modal .modal-header .important-notice {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    font-style: italic;
    padding-right: 40px;
    line-height: 1.4;
}

.legal-modal .modal-header .important-notice {
    color: red;
    font-weight: 600;
    font-style: normal;
}

.legal-modal .modal-close {
    color: #6b7280;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 16px;
}

.legal-modal .modal-close:hover,
.legal-modal .modal-close:focus {
    background-color: #f3f4f6;
    color: #374151;
}

.legal-modal .modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    font-family: 'ChesnaGrotesk', sans-serif;
    line-height: 1.6;
    color: #000000;
    flex: 1;
    max-height: calc(90vh - 160px);
}

.legal-modal .modal-body h3 {
    color: #1f2937;
    font-weight: 600;
    font-size: 16px;
    margin: 24px 0 12px 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-modal .modal-body h4 {
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    margin: 20px 0 8px 0;
}

.legal-modal .modal-body p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: rgb(9,9,11);
}

.legal-modal .modal-body ul, 
.legal-modal .modal-body ol {
    margin: 12px 0;
    padding-left: 20px;
}

.legal-modal .modal-body li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.legal-modal .modal-body strong {
    font-weight: 600;
    color: #1f2937;
}

.legal-modal .modal-body a {
    color: #3b82f6;
    text-decoration: none;
}

.legal-modal .modal-body a:hover {
    text-decoration: underline;
}

.legal-modal .modal-body .important-notice {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-weight: 600;
    color: #92400e;
    font-size: 14px;
}

.legal-modal .modal-footer {
    background-color: #ffffff;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.legal-modal .modal-close-btn {
    width: 100%;
    height: 3rem;
    background-color: #000000;
    color: #ffffff;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    opacity: 1;
    max-height: 3rem;
    overflow: hidden;
    font-family: 'ChesnaGrotesk', sans-serif;
}

.legal-modal .modal-close-btn:hover {
    background-color: #1f2937;
    transform: translateY(0);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}

.legal-modal .modal-close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling for modal body */
.legal-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal .modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.legal-modal .modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.legal-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design for legal modals */
@media (max-width: 768px) {
    .legal-modal .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
        border-radius: 6px;
    }
    
    .legal-modal .modal-header {
        padding: 20px 16px 12px 16px;
    }
    
    .legal-modal .modal-header .modal-title,
    .legal-modal .modal-header h2 {
        font-size: 18px;
        padding-right: 35px;
        margin-bottom: 6px;
    }
    
    .legal-modal .modal-header .last-updated,
    .legal-modal .modal-header .important-notice {
        font-size: 13px;
        padding-right: 35px;
    }
    
    .legal-modal .modal-body {
        padding: 12px 16px;
        max-height: calc(95vh - 140px);
    }
    
    .legal-modal .modal-footer {
        padding: 12px 16px;
    }
    
    .legal-modal .modal-close {
        font-size: 20px;
        width: 28px;
        height: 28px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .legal-modal .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
        border-radius: 4px;
    }
    
    .legal-modal .modal-header {
        padding: 16px 12px 8px 12px;
    }
    
    .legal-modal .modal-header .modal-title,
    .legal-modal .modal-header h2 {
        font-size: 16px;
        padding-right: 30px;
        margin-bottom: 4px;
    }
    
    .legal-modal .modal-header .last-updated,
    .legal-modal .modal-header .important-notice {
        font-size: 12px;
        padding-right: 30px;
    }
    
    .legal-modal .modal-body {
        padding: 8px 12px;
        max-height: calc(98vh - 120px);
    }
    
    .legal-modal .modal-body h3 {
        font-size: 15px;
        margin: 20px 0 10px 0;
    }
    
    .legal-modal .modal-body h4 {
        font-size: 14px;
        margin: 16px 0 6px 0;
    }
    
    .legal-modal .modal-body p,
    .legal-modal .modal-body li {
        font-size: 13px;
    }
    
    .legal-modal .modal-footer {
        padding: 8px 12px;
    }
    
    .legal-modal .modal-close-btn {
        height: 2.75rem;
        max-height: 2.75rem;
        font-size: 13px;
    }
    
    .legal-modal .modal-close {
        font-size: 18px;
        width: 26px;
        height: 26px;
        top: 10px;
        right: 10px;
    }
}