/**
 * Sage300 Registration Form Styles
 */

.sage300-registration-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.sage300-registration-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sage300-registration-form .form-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.sage300-registration-form .form-message:not(:empty) {
    display: block;
}

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

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

.sage300-registration-form .form-message p {
    margin: 0;
}

.sage300-registration-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

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

.sage300-registration-form .form-group.half {
    flex: 1;
}

.sage300-registration-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.sage300-registration-form label .required {
    color: #e74c3c;
}

.sage300-registration-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.sage300-registration-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.sage300-registration-form .form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #6c757d;
}

.sage300-registration-form .password-strength {
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.sage300-registration-form .password-strength:not(:empty) {
    display: block;
}

.sage300-registration-form .password-strength.weak {
    background-color: #f8d7da;
    color: #721c24;
}

.sage300-registration-form .password-strength.medium {
    background-color: #fff3cd;
    color: #856404;
}

.sage300-registration-form .password-strength.strong {
    background-color: #d4edda;
    color: #155724;
}

.sage300-registration-form .btn-register {
    width: 100%;
    padding: 14px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sage300-registration-form .btn-register:hover {
    background-color: #0056b3;
}

.sage300-registration-form .btn-register:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.sage300-registration-form .form-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sage300-registration-form .form-footer p {
    margin: 0;
    color: #6c757d;
}

.sage300-registration-form .form-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

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

/* Account Type Toggle Styles */
.sage300-registration-form .account-type-toggle {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sage300-registration-form .toggle-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.sage300-registration-form .toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: color 0.3s;
}

.sage300-registration-form .toggle-label.active {
    color: #007bff;
}

.sage300-registration-form .toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.sage300-registration-form .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sage300-registration-form .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #007bff;
    transition: .4s;
    border-radius: 30px;
}

.sage300-registration-form .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.sage300-registration-form .toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
}

.sage300-registration-form .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.sage300-registration-form .customer-number-field {
    background-color: #fff9e6;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #ffc107;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .sage300-registration-wrapper {
        padding: 10px;
    }
    
    .sage300-registration-form {
        padding: 20px;
    }
    
    .sage300-registration-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .sage300-registration-form .form-group.half {
        width: 100%;
    }
}
