/* Estilos específicos para la página de login de avalados */
.login-page {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(0px); }
    100% { transform: translateX(-100px); }
}

.back-home {
    position: fixed;
    top: 30px;
    left: 30px;
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateX(-5px);
}

.back-home span {
    font-size: 1.2em;
}

.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.login-left {
    background: linear-gradient(135deg, #2C7DFA 0%, #1a1a2e 100%);
    color: white;
    padding: 60px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 15s infinite linear reverse;
}

.login-left-content {
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 240px;
    height: auto;
    margin-bottom: 30px;
}

.login-title {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.login-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.login-features li::before {
    content: '✓';
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-title {
    font-size: 2.2em;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.login-form-subtitle {
    color: #718096;
    margin-bottom: 40px;
    font-size: 1em;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9em;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #2C7DFA;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 125, 250, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-weight: 500;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #2C7DFA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1a1a2e;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #2C7DFA, #1a1a2e);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(44, 125, 250, 0.3);
}

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

.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.5s;
}

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

.btn-login.loading {
    background: #a0aec0;
    cursor: not-allowed;
}

.btn-login:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: #718096;
    font-size: 0.9em;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.help-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-help {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-help:hover {
    border-color: #2C7DFA;
    background: #f0f8ff;
    color: #2C7DFA;
    text-decoration: none;
    transform: translateY(-1px);
}

.security-notice {
    background: #f0f8ff;
    border: 1px solid #bee3f8;
    color: #2c5282;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85em;
    text-align: center;
    margin-top: 20px;
}

.error-message {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #e53e3e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.success-message {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #2f855a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        margin: 20px;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 2em;
    }

    .login-form-title {
        font-size: 1.8em;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .help-options {
        flex-direction: column;
    }

    .back-home {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .login-card {
        margin: 10px;
    }

    .login-left {
        padding: 30px 20px;
    }

    .login-right {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 1.8em;
    }

    .login-form-title {
        font-size: 1.6em;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.8s ease;
}

.back-home {
    animation: fadeInUp 0.6s ease 0.2s both;
}