html, body { 
    height: 100%;
    margin: 0;
    padding: 0;
}

form {
    margin-left: auto;
    margin-right: auto;
}

body {
    font: 14px 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Alert boxes - Colores naturales y suaves */
.alert-box { 
    color: #4a5568; 
    border-radius: 12px; 
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95em; 
    padding: 14px 20px 14px 48px;  
    margin: 12px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.alert-box .close-tip {
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-box .close-tip:hover { 
    color: #2d3748;
    opacity: 0.8;
}

/* Login container - Diseño moderno y elegante */
#login, .cuadro {
    height: auto;
    min-height: 450px;
    width: 380px;
    max-width: 92%;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 2px 10px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#login:hover, .cuadro:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Input fields - Estilo minimalista */
#inputs input, #inputs select {
    background: #f8fafc;
    padding: 14px 16px 14px 42px;
    margin: 0 0 14px 0;
    width: 100%;
    max-width: 100%;
    border: 2px solid #e8edf2;
    border-radius: 12px;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

#inputs input:focus, #inputs select:focus {
    background: #ffffff;
    border-color: #b8c9d9;
    box-shadow: 0 0 0 4px rgba(184, 201, 217, 0.15);
    outline: none;
}

#inputs input::placeholder {
    color: #a0aec0;
}

/* Input icons - Suaves y naturales */
input[type='text'] { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
}

input[type='password'] { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
}

#inputs select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

/* Submit button - Elegante y natural */
#submit, .button {
    height: 48px;
    min-width: 140px;
    padding: 0 30px;
    background: linear-gradient(135deg, #66788a 0%, #5a6b7c 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font: 600 15px 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(90, 107, 124, 0.25);
    letter-spacing: 0.3px;
    float: left;
    position: relative;
    overflow: hidden;
}

#submit::after, .button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

#submit:hover, #submit:focus, .button:hover, .button:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 107, 124, 0.3);
    background: linear-gradient(135deg, #718596 0%, #5f7284 100%);
}

#submit:active, .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(90, 107, 124, 0.2);
}

#submit::-moz-focus-inner, .button::-moz-focus-inner {
    border: none;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

#actions {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#actions a {
    color: #66788a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    line-height: 48px;
}

#actions a:hover {
    color: #4a5a68;
    text-decoration: underline;
}

#actions a.button {
    line-height: 48px;
    min-width: 100px;
    text-align: center;
}

#back {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #a0aec0;
    font-size: 13px;
}

/* Alert states - Colores naturales */
.error, .credito-estado-20 {
    background: #fef6f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e53e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
    border: 1px solid #fcd5d0;
    color: #742a2a;
}

.success, .credito-estado-10 {
    background: #f4faf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2338a169' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
    border: 1px solid #c6e0c0;
    color: #2d5a27;
}

.warning, .credito-estado-30 {
    background: #fefcf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d69e2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'%3E%3C/path%3E%3Cpath d='M12 17h.01'%3E%3C/path%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z'%3E%3C/path%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
    border: 1px solid #f5e3b8;
    color: #7c5a1a;
}

.notice {
    background: #f0f7fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233180c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
    border: 1px solid #b8d4e8;
    color: #1a4a6b;
}

#banner {
    right: 0;
    bottom: 0;
    position: fixed !important;
}

th {
    text-align: right;
    color: #4a5568;
    font-weight: 600;
    padding: 8px 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 8px 12px;
    color: #4a5568;
}

/* Responsive adjustments */
@media only screen and (max-width: 480px) {
    #doptions { visibility: hidden; }
    
    .alert-box {
        padding: 12px 16px 12px 44px;
        margin: 8px 0;
        font-size: 0.9em;
    }
    
    #login, .cuadro {
        padding: 30px 20px;
        min-height: 400px;
        width: 100%;
        border-radius: 16px;
    }
    
    #inputs input, #inputs select {
        padding: 12px 14px 12px 40px;
        font-size: 13px;
    }
    
    #submit, .button {
        min-width: 100%;
        height: 44px;
        font-size: 14px;
    }
    
    #actions {
        flex-direction: column;
        gap: 8px;
    }
    
    #actions a {
        line-height: 44px;
        width: 100%;
        text-align: center;
    }
    
    form {
        height: 100%;
    }
    
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 30px;
    }
}