/**
 * Courseable Registration Form Styles
 */

.courseable-registration-form {
    max-width: 600px;
    margin: 0 auto;
}

.courseable-field {
    margin-bottom: 24px;
}

.courseable-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.courseable-field label .required {
    color: #d32f2f;
}

.courseable-field input[type="text"],
.courseable-field input[type="email"],
.courseable-field input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.courseable-field input:focus {
    outline: none;
    border-color: #26a69a;
    box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.1);
}

.courseable-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.courseable-field-group .courseable-field {
    margin-bottom: 0;
}

.courseable-field small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 13px;
}

.courseable-submit {
    background: #26a69a;
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.courseable-submit:hover {
    background: #2bbbad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
}

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

.courseable-errors {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.courseable-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #c62828;
}

.courseable-errors a {
    color: #c62828;
    text-decoration: underline;
}

.courseable-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.courseable-loading-overlay.active {
    display: flex;
}

.courseable-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #26a69a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.courseable-loading-text {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.courseable-loading-subtext {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}


button.courseable-submit {
    background-color: #1C9DA0 !important;
    color: white;
    padding: 10px 40px;
    border: none !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .courseable-field-group {
        grid-template-columns: 1fr;
    }
    
    .courseable-submit {
        width: 100%;
    }
}