/* ==========================================
   ESTILOS GENERALES Y ENCABEZADOS
   ========================================== */
.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.page-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.table-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   ESTILOS PARA FORMULARIO MODERNO (modern-form)
   ========================================== */
.modern-form fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 0;
}

.modern-form legend {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    padding: 0 10px;
}

.modern-form .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.modern-form label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
}

.modern-form input[type="text"],
.modern-form input[type="password"],
.modern-form input[type="email"],
.modern-form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modern-form input[type="text"]:focus,
.modern-form input[type="password"]:focus,
.modern-form input[type="email"]:focus,
.modern-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modern-form input[readonly] {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ==========================================
   RADIO BUTTONS PERSONALIZADOS
   ========================================== */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 5px;
}

.custom-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    user-select: none;
}

.custom-radio input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s;
}

.custom-radio input[type="radio"]:checked+.radio-mark {
    border-color: #2563eb;
}

.custom-radio input[type="radio"]:checked+.radio-mark::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2563eb;
}

.radio-label {
    font-weight: 500;
}

/* ==========================================
   ACCIONES Y BOTONES (Quitado para usar layout.css)
   ========================================== */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

/* estilos de login */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 0;
}

.background-animation li {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(77, 111, 133, 0.05); /* Soft primary color */
    color: rgba(77, 111, 133, 0.15); /* Slightly darker for icons */
    animation: floatUp 25s linear infinite;
    bottom: -150px;
    border: 1px solid rgba(77, 111, 133, 0.1);
}

.background-animation li svg {
    width: 50%;
    height: 50%;
}

.background-animation li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.background-animation li:nth-child(2) {
    left: 10%;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.background-animation li:nth-child(3) {
    left: 70%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
}

.background-animation li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.background-animation li:nth-child(5) {
    left: 65%;
    width: 30px;
    height: 30px;
    animation-delay: 0s;
}

.background-animation li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.background-animation li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.background-animation li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Animated Lines */
.animated-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-evenly;
}

.animated-lines .line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(77, 111, 133, 0), rgba(77, 111, 133, 0.2), rgba(77, 111, 133, 0));
    animation: growShrink 10s infinite ease-in-out;
    transform-origin: center;
}

.animated-lines .line:nth-child(1) { animation-delay: 0s; }
.animated-lines .line:nth-child(2) { animation-delay: -2s; }
.animated-lines .line:nth-child(3) { animation-delay: -4s; }
.animated-lines .line:nth-child(4) { animation-delay: -6s; }
.animated-lines .line:nth-child(5) { animation-delay: -8s; }

@keyframes growShrink {
    0%, 100% {
        transform: scaleY(0);
        opacity: 0;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.login-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color, #cbd5e1);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: var(--primary-color, #4D6F85);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 15px rgba(77, 111, 133, 0.2);
}

.login-logo svg {
    width: 32px;
    height: 32px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
    margin: 0 0 0.5rem 0;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    width: 20px;
    height: 20px;
}

.form-group-icon input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: #f8fafc;
    color: var(--text-main, #1e293b);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group-icon input:focus {
    background: white;
    border-color: var(--primary-color, #4D6F85);
    box-shadow: 0 0 0 4px rgba(77, 111, 133, 0.1);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    background: var(--primary-color, #4D6F85);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-block:hover {
    background: var(--primary-hover, #5A74A0);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(77, 111, 133, 0.25);
}

.btn-block svg {
    width: 18px;
    height: 18px;
}
@media (max-width: 480px) {
    .login-body {
        padding: 1rem;
        box-sizing: border-box;
    }
    .login-card {
        padding: 1.5rem;
        max-width: 100%;
    }
}
