/* CLEAN FORM STYLES - WHATEAZY */

/* Login Container - Center the form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f8f9fa;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo img {
    height: 40px;
    margin-bottom: 20px;
}

/* Form Container */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Groups - Consistent Styling */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Input Fields - Clean & Modern */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5AA9FF;
    box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.1);
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

/* Success States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #30d158;
    box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.1);
}

/* Textarea Specific */
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select Specific */
.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Error Messages */
.error-message {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Help Text */
.help-text {
    color: #86868b;
    font-size: 12px;
    margin-top: 4px;
}

/* Required Indicator */
.form-group label.required::after {
    content: " *";
    color: #ff3b30;
}

/* File Upload Styling */
.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #e5e5e7;
    background: #f9f9f9;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #5AA9FF;
    background: #f0f8ff;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

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

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

/* Button Styling */
.btn-primary {
    background: #5AA9FF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    background: #4A98E8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #86868b;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.form-group.loading input,
.form-group.loading select,
.form-group.loading textarea {
    background: #f9f9f9;
    color: #86868b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
}
