/* Modern styling for the public sign-up page */
/* This CSS is scoped to the sign-up page only to avoid affecting other pages */

/* Main container improvements */
.signup-page {
    padding-bottom: 3rem;
}

/* Header section with logo and event info */
.signup-page .signup-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.signup-page .signup-header:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Typography improvements */
.signup-page h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.signup-page h4 {
    color: #34495e;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.signup-page h5 {
    color: #16a085;
    font-weight: 600;
}

.signup-page h6 {
    color: #7f8c8d;
    font-weight: 500;
}

/* Alert improvements */
.signup-page .alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid;
}

.signup-page .alert-primary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #2196f3;
    color: #0d47a1;
}

.signup-page .alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #4caf50;
    color: #1b5e20;
}

.signup-page .alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #ff9800;
    color: #e65100;
}

.signup-page .alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left-color: #f44336;
    color: #b71c1c;
}

.signup-page .alert-info {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-left-color: #00bcd4;
    color: #006064;
}

/* Form field improvements */
.signup-page .form-control,
.signup-page .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* Form floating label adjustments */
.signup-page .form-floating > .form-control {
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
}

.signup-page .form-floating > label {
    padding: 1rem 0.75rem;
}

.signup-page .form-control:focus,
.signup-page .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.signup-page .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Improve select dropdowns */
.signup-page select.form-control,
.signup-page .form-select {
    background-color: white;
    cursor: pointer;
}

/* Checkbox styling */
.signup-page .form-check {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.signup-page .form-check:hover {
    background-color: #f8f9fa;
}

.signup-page .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    border: 2px solid #bdc3c7;
    transition: all 0.2s ease;
}

.signup-page .form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.signup-page .form-check-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.signup-page .form-check-label {
    font-weight: 500;
    color: #2c3e50;
    margin-left: 0.5rem;
}

/* Task list headers */
.signup-page .task-list-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Day section headings */
.signup-page h4 > i.fas.fa-calendar-alt {
    color: #3498db;
    margin-right: 0.5rem;
}

/* Task rows */
.signup-page .row.border-bottom {
    padding: 1rem 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

.signup-page .row.border-bottom:hover {
    background-color: #f8f9fa;
}

/* Button improvements */
.signup-page .btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.signup-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.signup-page .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.signup-page .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
}

.signup-page .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.signup-page .btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.signup-page .btn-danger,
.signup-page .btn-outline-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
}

.signup-page .btn-danger:hover,
.signup-page .btn-outline-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: white;
}

.signup-page .btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* Submit button special styling */
.signup-page button#submitButtonId,
.signup-page #submitButtonId.btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    animation: pulse-green 2s infinite;
}

.signup-page button#submitButtonId:hover,
.signup-page #submitButtonId.btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
    transform: translateY(-3px);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(39, 174, 96, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    }
}

/* Fixed bottom button container */
.signup-page .fixed-bottom {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 1) 40%);
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    backdrop-filter: blur(10px);
}

/* Spots open indicator */
.signup-page .d-flex.align-items-center small {
    font-weight: 600;
    color: #27ae60;
}

/* Icon improvements */
.signup-page .fas,
.signup-page .far {
    margin-right: 0.25rem;
}

/* Description text */
.signup-page .text-muted,
.signup-page small.text-muted {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Link styling */
.signup-page a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.signup-page a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Modal improvements */
.signup-page .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.signup-page .modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: none;
}

.signup-page .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.signup-page .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Turnstile captcha container */
.signup-page .cf-turnstile {
    margin: 1.5rem 0;
}

/* Improve spacing for sections */
.signup-page .container-fluid {
    padding: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .signup-page .signup-header {
        padding: 1.5rem;
    }
    
    .signup-page h3 {
        font-size: 1.5rem;
    }
    
    .signup-page .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    /* On mobile, make fixed bottom position relative */
    .signup-page div.fixed-bottom,
    .signup-page .row.fixed-bottom {
        position: relative;
    }
    
    /* Button container - allow wrapping on mobile */
    .signup-page .alert .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* First two buttons - 50% width each on mobile */
    .signup-page .alert .d-flex.justify-content-between .btn:nth-child(1),
    .signup-page .alert .d-flex.justify-content-between .btn:nth-child(2) {
        flex: 0 0 calc(50% - 0.25rem);
    }
    
    /* Third button - full width on second row */
    .signup-page .alert .d-flex.justify-content-between .btn:nth-child(3) {
        flex: 0 0 100%;
    }
}

/* Admin message styling */
.signup-page .alert.d-none {
    /* Keep hidden */
}

/* Job summary description box */
.signup-page #jobsummarydescription {
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Collapsible sections */
.signup-page .collapse {
    transition: height 0.3s ease;
}

/* Pre-event instructions */
.signup-page .alert-info h4 {
    border-bottom: none;
    color: #006064;
    margin-top: 0;
}

/* Calendar icon in task list */
.signup-page .fa-clock {
    color: #7f8c8d;
}

/* User friends icon */
.signup-page .fa-user-friends {
    color: #95a5a6;
}

/* Ensure white backgrounds for form sections */
.signup-page form > .container,
.signup-page form > div {
    background: transparent;
}

/* Contact info section */
.signup-page form h4:first-of-type {
    margin-top: 1.5rem;
}

/* Add card-like appearance to main form sections */
.signup-page form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
}

/* Improve container spacing */
.signup-page .container {
    margin-bottom: 1.5rem;
}

/* Add class to body for styling when signup page is active - applied via script */
body.signup-page-active {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Make the page container transparent to show body background */
body.signup-page-active > .container.page {
    background: transparent;
}
