﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/bundles/template/images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.01) 0%, rgba(0, 86, 179, 0.01) 100%);
    z-index: 1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 51, 102, 0.15);
    backdrop-filter: blur(10px);
    /*border: 1px solid rgba(255, 255, 255, 0.5);*/
}

.login-image {
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .login-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 50 A50 50 0 0 1 50 0 A50 50 0 0 1 100 50 A50 50 0 0 1 50 100 A50 50 0 0 1 0 50 Z" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"/><path d="M10 50 A40 40 0 0 1 50 10 A40 40 0 0 1 90 50 A40 40 0 0 1 50 90 A40 40 0 0 1 10 50 Z" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"/><path d="M20 50 A30 30 0 0 1 50 20 A30 30 0 0 1 80 50 A30 30 0 0 1 50 80 A30 30 0 0 1 20 50 Z" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"/><path d="M30 50 A20 20 0 0 1 50 30 A20 20 0 0 1 70 50 A20 20 0 0 1 50 70 A20 20 0 0 1 30 50 Z" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"/><path d="M40 50 A10 10 0 0 1 50 40 A10 10 0 0 1 60 50 A10 10 0 0 1 50 60 A10 10 0 0 1 40 50 Z" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"/></svg>');
        opacity: 0.2;
    }

/* Animated Dots */
.dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
}

    .dot:nth-child(1) {
        top: 10%;
        left: 20%;
        animation: blink 3s infinite;
    }

    .dot:nth-child(2) {
        top: 20%;
        left: 80%;
        animation: blink 5s infinite;
        animation-delay: 1s;
    }

    .dot:nth-child(3) {
        top: 30%;
        left: 45%;
        animation: blink 4s infinite;
        animation-delay: 2s;
    }

    .dot:nth-child(4) {
        top: 70%;
        left: 10%;
        animation: blink 6s infinite;
        animation-delay: 3s;
    }

    .dot:nth-child(5) {
        top: 80%;
        left: 60%;
        animation: blink 3.5s infinite;
        animation-delay: 1.5s;
    }

    .dot:nth-child(6) {
        top: 40%;
        left: 30%;
        animation: blink 5.5s infinite;
        animation-delay: 2.5s;
    }

    .dot:nth-child(7) {
        top: 60%;
        left: 70%;
        animation: blink 4.5s infinite;
        animation-delay: 0.5s;
    }

@keyframes blink {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.university-seal {
    width: 160px;
    height: 160px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float-seal 6s infinite ease-in-out;
}

@keyframes float-seal {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.university-name {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: 1.5px;
}

.portal-title {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #ffd700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portal-description {
    font-size: 14px;
    font-style: italic;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 280px;
}

.login-form {
    width: 55%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

h2 {
    color: #003366;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
    font-size: 32px;
    letter-spacing: 1px;
}

.input-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #4a5568;
    font-weight: 500;
    font-size: 15px;
}

input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

    input:focus {
        outline: none;
        border-color: #0056b3;
        box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    }

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #a0aec0;
        font-size: 20px;
    }

.forgot-password {
    display: block;
    text-align: right;
    color: #0056b3;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .forgot-password:hover {
        color: #003366;
        text-decoration: underline;
    }

/* LinkButton Login Design - Adaptado para ASP.NET WebForms */

.login-btn {
    display: inline-block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.15);
    text-decoration: none !important;
    text-align: center;
    line-height: 1.2;
}

    /* Efecto de brillo deslizante */
    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: 0.6s;
        z-index: 1;
    }

    .login-btn:hover::before {
        left: 100%;
    }

    /* Estados hover y focus */
    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0, 51, 102, 0.2);
        color: white !important;
        text-decoration: none !important;
    }

    .login-btn:focus {
        outline: none;
        box-shadow: 0 15px 30px rgba(0, 51, 102, 0.2), 0 0 0 3px rgba(0, 86, 179, 0.3);
        color: white !important;
        text-decoration: none !important;
    }

    .login-btn:active {
        transform: translateY(-1px);
        box-shadow: 0 8px 16px rgba(0, 51, 102, 0.18);
    }

    /* Asegurar que el contenido esté por encima del efecto de brillo */
    .login-btn > * {
        position: relative;
        z-index: 2;
    }

    /* Estilos para el icono */
    .login-btn i {
        margin-right: 8px;
        font-size: 16px;
    }

/* Responsive design */
@media (max-width: 768px) {
    .login-btn {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-btn {
        padding: 14px;
        font-size: 15px;
    }

        .login-btn i {
            margin-right: 6px;
            font-size: 14px;
        }
}

/* Variantes adicionales para diferentes estados */
.login-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 5px 10px rgba(0, 51, 102, 0.1) !important;
}

.login-btn.loading {
    pointer-events: none;
}

    .login-btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 3;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Alternativa con color más claro */
.login-btn.light {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

/* Alternativa con bordes */
.login-btn.outlined {
    background: transparent;
    border: 2px solid #0056b3;
    color: #0056b3 !important;
}

    .login-btn.outlined:hover {
        background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
        color: white !important;
        border-color: transparent;
    }

.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #718096;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 400px;
    }

    .login-image {
        width: 100%;
        padding: 40px 30px;
    }

    .login-form {
        width: 100%;
        padding: 40px 30px;
    }

    .university-seal {
        width: 120px;
        height: 120px;
    }
}

.required {
    color: #e53e3e;
}
