/* Estilos específicos para la página de blanqueo */
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.blanqueo-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.blanqueo-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.blanqueo-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.blanqueo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blanqueo-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 1rem;
}

.blanqueo-logo i {
    color: #2563eb;
}

.blanqueo-title {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.blanqueo-subtitle {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

.blanqueo-form {
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

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

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #f9fafb;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.input-icon {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1rem;
}

.input-icon input {
    padding-left: 3rem;
    box-sizing: border-box;
}

.blanqueo-button {
    width: 100%;
    padding: 0.875rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.blanqueo-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.blanqueo-button:active {
    transform: translateY(0);
}

.blanqueo-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.blanqueo-footer {
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.login-link {
    color: #6b7280;
    font-size: 0.9rem;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;

    color: white;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);

    transition: 
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

.back-to-home:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}


.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    min-height: 1.25rem;
    line-height: 1.25rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .blanqueo-container {
        padding: 1rem;
    }
    
    .blanqueo-card {
        padding: 2rem;
    }
    
    .blanqueo-title {
        font-size: 1.5rem;
    }
    
    .back-to-home {
        position: static;
        margin-bottom: 1rem;
        justify-content: center;
    }
}

/* Animaciones */
.blanqueo-card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input:focus + i {
    color: #2563eb;
}

