/* Club Member Registration Form Styles */

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

/* Container Styles */
.club-member-registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

.club-registration-form-wrapper {
    /* Remove background - keep clean white */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.club-registration-form-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-description {
    text-align: center;
    color: #000000;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Layout */
.club-registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    /* Hide labels - keep only placeholders */
    display: none;
}

.form-group input,
.form-group select {
    box-sizing: border-box;
    width: 100%;
    height: 55px;
    padding: 0 16px;
    background: #FFFFFF;
    /* Rectangle 2 */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    color: #000000;
    font-weight: 400;
}

.form-group input::placeholder {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.form-group input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

/* Required field indicator */
.required {
    color: #dc3545;
    font-weight: 600;
}

/* Field error messages */
.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    text-align: left;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    justify-content: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
}

.checkbox-group label a {
    color: #4285f4;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Submit button */
.form-submit {
    margin-top: 30px;
    text-align: right;
}

.submit-btn {
    /* Group 40120 */
    width: 220px;
    height: 43px;
    background: #1C71EF !important;
    color: #ffffff !important;
    border: none;
    border-radius: 192px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    text-transform: none !important;

    letter-spacing: 0.5px;

}

.submit-btn:hover:not(:disabled) {
    background: #3367d6;
 

}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form messages */
.form-messages {
    margin-top: 20px;
}

.success-message,
.error-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Already registered message */
.club-registration-logged-in {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.club-registration-logged-in h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 20px;
}

.club-registration-logged-in p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.club-registration-logged-in a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.club-registration-logged-in a:hover {
    text-decoration: underline;
}

/* Existing user info section */
.existing-user-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.existing-user-info p {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
}

.existing-user-info ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    color: #495057;
}

.existing-user-info li {
    margin-bottom: 5px;
    font-size: 14px;
}

.existing-user-info em {
    color: #dc3545;
    font-style: italic;
    font-size: 13px;
}

/* Password strength indicator */
.password-strength-indicator {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

.password-strength-indicator.very-weak {
    background: #f8d7da;
    color: #721c24;
}

.password-strength-indicator.weak {
    background: #fff3cd;
    color: #856404;
}

.password-strength-indicator.fair {
    background: #d1ecf1;
    color: #0c5460;
}

.password-strength-indicator.good {
    background: #d4edda;
    color: #155724;
}

.password-strength-indicator.strong {
    background: #d1e7dd;
    color: #0f5132;
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.password-toggle:hover {
    color: #333;
}

.form-group {
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .club-member-registration-container {
        padding: 20px 15px;
    }
    
    .club-registration-form-wrapper h2 {
        font-size: 28px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: auto;
        width: 100%;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .submit-btn {
        padding: 18px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .club-registration-form-wrapper h2 {
        font-size: 24px;
    }
    
    .form-description {
        font-size: 14px;
    }
}

/* Accessibility improvements */
.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.submit-btn:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select {
        border: 2px solid #000;
    }
    
    .submit-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .submit-btn,
    .form-group input,
    .form-group select {
        transition: none;
    }
    
    .spinner {
        animation: none;
    }
}

/* Print styles */
@media print {
    .club-member-registration-container {
        max-width: none;
        padding: 0;
    }
    
    .submit-btn,
    .form-messages {
        display: none;
    }
} 