/* SuperABD User Registration Frontend Styles */

.superabd-ur-custom-form,
.superabd-ur-registration-form,
.superabd-ur-login-form,
.superabd-ur-password-reset,
.superabd-ur-dashboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.superabd-ur-form .form-field {
    margin-bottom: 20px;
}

.superabd-ur-form .form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.superabd-ur-form .form-control,
.superabd-ur-form input[type="text"],
.superabd-ur-form input[type="email"],
.superabd-ur-form input[type="password"],
.superabd-ur-form input[type="tel"],
.superabd-ur-form input[type="number"],
.superabd-ur-form input[type="date"],
.superabd-ur-form input[type="file"],
.superabd-ur-form select,
.superabd-ur-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.superabd-ur-form .form-control:focus,
.superabd-ur-form input:focus,
.superabd-ur-form select:focus,
.superabd-ur-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.required-asterisk {
    color: #e74c3c;
    margin-left: 3px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-google {
    background: #db4437;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: #c23321;
}

.google-icon {
    font-weight: bold;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.btn-outline:hover {
    background: #007cba;
    color: white;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input,
.radio-label input {
    margin-right: 8px;
    width: auto;
}

.form-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #007cba;
    text-decoration: none;
}

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

.oauth-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

/* Error and success messages */
.form-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

/* Dashboard specific styles */
.superabd-ur-dashboard h2 {
    margin-top: 0;
    color: #333;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.dashboard-section h3 {
    margin-top: 0;
    color: #333;
}

.dashboard-section p {
    margin-bottom: 10px;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

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

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

.password-strength.strength-fair {
    background: #cff4fc;
    color: #055160;
}

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

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

/* Field errors */
.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.form-control.error {
    border-color: #e74c3c;
}

/* Responsive design */
@media (max-width: 768px) {
    .superabd-ur-custom-form,
    .superabd-ur-registration-form,
    .superabd-ur-login-form,
    .superabd-ur-password-reset,
    .superabd-ur-dashboard {
        margin: 10px;
        padding: 15px;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}