/* styleProveedor.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #ff7e5f;
}

.form-section h3 {
    color: #ff7e5f;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

label::after {
    content: " *";
    color: #e74c3c;
}

.optional-label::after {
    content: "" !important;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff7e5f;
    background-color: #fffaf8;
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.1);
    transform: translateY(-1px);
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sex-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sex-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    background: white;
    border: 2px solid #e1e5e9;
}

.sex-option:hover {
    background-color: #fffaf8;
    border-color: #ff7e5f;
}

.sex-option input {
    width: 18px;
    height: 18px;
    accent-color: #ff7e5f;
}

.sex-option label {
    margin-bottom: 0;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff7e5f;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background-color: #fff0ec;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 126, 95, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.example-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
    height: 15px;
    font-weight: 600;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-link a {
    color: #ff7e5f;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .form-card {
        padding: 25px;
    }
    
    .name-row {
        grid-template-columns: 1fr;
    }
    
    .sex-options {
        flex-direction: column;
    }
    
    .form-section {
        padding: 20px;
    }
}