/**
 * SmartWeb Registration Styles
 */

/* Registration and Login Forms */
.smartweb-register-form,
.smartweb-login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.field-error {
    border-color: #ef4444;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

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

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-align: center;
}

.password-strength.weak {
    background-color: #fee2e2;
    color: #dc2626;
}

.password-strength.medium {
    background-color: #fef3c7;
    color: #d97706;
}

.password-strength.strong {
    background-color: #d1fae5;
    color: #059669;
}

/* Error and Success Messages */
.error-message,
.success-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Submit Button */
.smartweb-register-form button[type="submit"],
.smartweb-login-form button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.smartweb-register-form button[type="submit"]:hover,
.smartweb-login-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.smartweb-register-form button[type="submit"]:disabled,
.smartweb-login-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Social Login Section */
.social-login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.social-login-divider span {
    background-color: white;
    padding: 0 1rem;
    position: relative;
    color: #6b7280;
    font-size: 0.875rem;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.social-login-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.social-login-btn.google {
    border-color: #4285f4;
    color: #4285f4;
}

.social-login-btn.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

/* Form Footer */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* Remember Me Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.875rem;
    color: #6b7280;
}