/* Coirle Registration Form Styles */

.coirle-reg-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.coirle-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007AFF;
}

.coirle-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.coirle-form-header h2 {
    color: #2c3e50;
    margin: 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.coirle-form-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.coirle-form-messages {
    margin-bottom: 20px;
    padding: 0;
}

.coirle-form-messages.success {
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
    margin-bottom: 20px;
}

.coirle-form-messages.error {
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    margin-bottom: 20px;
}

.coirle-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.coirle-form-group {
    margin-bottom: 20px;
}

.coirle-form-group.coirle-half {
    flex: 1;
}

.coirle-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.coirle-form-group input[type="text"],
.coirle-form-group input[type="email"],
.coirle-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.coirle-form-group input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.coirle-form-group input:invalid {
    border-color: #e74c3c;
}

.coirle-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 13px;
}

.coirle-invitation-code {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #007AFF;
}

.coirle-invitation-code label {
    color: #007AFF;
    font-weight: 600;
}

.coirle-invitation-code input {
    background: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coirle-terms {
    margin: 25px 0;
}

.coirle-recaptcha {
    margin: 25px 0;
    text-align: center;
}

.coirle-recaptcha .g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

#recaptcha-error {
    text-align: center;
    margin-top: 10px;
}

.coirle-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

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

.coirle-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 3px solid #007AFF;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
    min-width: 22px;
    min-height: 22px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coirle-checkbox-label input:checked + .coirle-checkbox-custom {
    background: #007AFF;
}

.coirle-checkbox-label input:checked + .coirle-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.coirle-checkbox-label a {
    color: #007AFF;
    text-decoration: none;
}

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

.coirle-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coirle-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056CC 0%, #004499 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.coirle-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.coirle-form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.coirle-form-footer p {
    margin: 0;
    color: #7f8c8d;
}

.coirle-form-footer a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

.coirle-form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .coirle-reg-form {
        margin: 20px;
        padding: 20px;
    }
    
    .coirle-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .coirle-form-group.coirle-half {
        margin-bottom: 20px;
    }
    
    .coirle-form-header h2 {
        font-size: 24px;
    }
}

/* Loading State */
.coirle-loading {
    position: relative;
}

.coirle-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 999;
    border-radius: 8px;
}

.coirle-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

/* reCAPTCHA styling */
.coirle-recaptcha {
    margin: 20px 0;
    text-align: center;
}

.coirle-recaptcha .g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

#recaptcha-error {
    text-align: center;
    margin-top: 8px;
}
