/* Estilos específicos para el login profesional - Tema Azul Profesional */
body {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #1e3c72 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(30, 60, 114, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.login-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 25px 45px rgba(30, 60, 114, 0.15),
        0 16px 32px rgba(79, 172, 254, 0.1),
        0 4px 8px rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #1e3c72 100%);
    z-index: 1;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4facfe 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
    margin-top: 4px;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0.8;
}

.login-header .content {
    position: relative;
    z-index: 2;
}

.institution-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-body {
    padding: 2.5rem;
}

.step-indicator {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow:
        0 4px 15px rgba(79, 172, 254, 0.4),
        0 2px 8px rgba(0, 242, 254, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-message {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow:
        0 5px 15px rgba(79, 172, 254, 0.1),
        0 2px 8px rgba(30, 60, 114, 0.05);
}

.welcome-message .alert-heading {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.welcome-message p {
    color: #2a5298;
    margin-bottom: 0;
    line-height: 1.6;
}

.form-floating-enhanced {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-enhanced .form-control {
    border: 2px solid rgba(79, 172, 254, 0.2);
    border-radius: 12px;
    height: 58px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.05);
}

.form-floating-enhanced .form-control:focus {
    border-color: #4facfe;
    box-shadow:
        0 0 0 0.2rem rgba(79, 172, 254, 0.25),
        0 4px 12px rgba(79, 172, 254, 0.15);
    background: white;
    transform: translateY(-1px);
}

.form-floating-enhanced label {
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.form-floating-enhanced .form-control:focus~label,
.form-floating-enhanced .form-control:not(:placeholder-shown)~label {
    color: #1e3c72;
    font-weight: 600;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4facfe;
    font-size: 1.2rem;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4facfe 100%);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 20px rgba(30, 60, 114, 0.3),
        0 4px 12px rgba(79, 172, 254, 0.2);
    min-width: 150px;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(30, 60, 114, 0.4),
        0 6px 16px rgba(79, 172, 254, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.semester-info {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(30, 136, 229, 0.3),
        0 2px 6px rgba(25, 118, 210, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.error-message {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    20%,
    40%,
    60%,
    80% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    background: rgba(79, 172, 254, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    background: rgba(30, 136, 229, 0.1);
}

.shape:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
    background: rgba(0, 242, 254, 0.1);
}

.shape:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 4s;
    background: rgba(30, 60, 114, 0.1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        border-radius: 15px;
    }

    .login-header {
        padding: 1.5rem;
    }

    .login-body {
        padding: 1.5rem;
    }

    .institution-logo {
        width: 60px;
        height: 60px;
    }
}

/* Animaciones y efectos adicionales */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.focused .form-control {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* ===== ESTILOS PARA STEP ONE - VERIFICACIÓN DE ELEGIBILIDAD ===== */

/* Header profesional */
.professional-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4facfe 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.professional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0.8;
}

.logo-container {
    position: relative;
    z-index: 2;
}

.header-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.institution-info {
    position: relative;
    z-index: 2;
}

.institution-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.institution-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.step-counter {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    backdrop-filter: blur(10px);
}

.step-label {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Contenido principal */
.main-content {
    padding: 1.5rem 0;
    min-height: calc(100vh - 120px);
}

/* Sección de bienvenida */
.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow:
        0 8px 25px rgba(30, 60, 114, 0.1),
        0 4px 12px rgba(79, 172, 254, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #1e3c72 100%);
}

.welcome-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.welcome-content {
    flex-grow: 1;
}

.welcome-title {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.welcome-description {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

.status-indicator {
    flex-shrink: 0;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.status-badge.verified {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}

.status-badge.success {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* Sección de verificación */
.verification-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(79, 172, 254, 0.2);
}

.status-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.15);
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.3rem;
}

.status-icon.academic {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
}

.status-icon.financial {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
}

.status-icon.period {
    background: linear-gradient(135deg, #fb8c00 0%, #f57c00 100%);
}

.status-content h6 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Sección de términos */
.terms-section {
    margin-bottom: 2rem;
}

.terms-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
}

.terms-title {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.terms-subtitle {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.pdf-actions .btn {
    font-size: 0.85rem;
}

.pdf-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    overflow: hidden;
    height: 600px;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-indicator {
    text-align: center;
    color: #1e3c72;
}

.loading-indicator i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Modo pantalla completa */
.pdf-container.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

/* Sección de acciones */
.action-section {
    margin-top: 2rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.info-content h6 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.action-buttons {
    text-align: center;
}

.btn-logout {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(225, 112, 85, 0.3);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(225, 112, 85, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .professional-header {
        padding: 1rem 0;
    }

    .institution-name {
        font-size: 1.4rem;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .pdf-container {
        height: 400px;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
    }

    .terms-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .pdf-actions {
        text-align: center;
    }
}

/* Alertas de estado de matrícula */
.alert-matriculado,
.alert-disponible {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.alert-matriculado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00b894 0%, #00a085 100%);
}

.alert-disponible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.alert-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.alert-matriculado .alert-icon {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.alert-disponible .alert-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.alert-message {
    color: #6c757d;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.alert-details {
    color: #6c757d;
    font-size: 0.85rem;
}

.alert-details strong {
    color: #1e3c72;
    font-weight: 600;
}

/* Botones adicionales */
.btn-continue {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.4);
    color: white;
    text-decoration: none;
}

.btn-logout-secondary {
    background: transparent;
    border: 2px solid rgba(225, 112, 85, 0.5);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    color: #e17055;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-logout-secondary:hover {
    background: rgba(225, 112, 85, 0.1);
    border-color: #e17055;
    color: #d63031;
    text-decoration: none;
}