/* Variables CSS */
:root {
    --primary-blue: #2a4b8d;
    --secondary-blue: #0066cc;
    --light-blue: #e6f0ff;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --info-blue: #17a2b8;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    --danger-red: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e6f0fc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    
}

/* Fondo animado */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-logo {
    position: absolute;
    opacity: 1;
    animation: float 20s infinite linear;
}

.floating-logo img {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
}

.logo-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.logo-2 {
    top: 20%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 30s;
    animation-direction: reverse;
}

.logo-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 35s;
}

.logo-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: -15s;
    animation-duration: 28s;
    animation-direction: reverse;
}

.logo-5 {
    top: 50%;
    left: 5%;
    animation-delay: -20s;
    animation-duration: 32s;
}

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

/* Contenedor principal */
.main-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;    
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Panel izquierdo */
.banner-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-brand {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-slide {
    text-align: center;
    padding: 2rem 1rem;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.banner-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.banner-icons {
    font-size: 3rem;
    opacity: 0.8;
    display: flex;
    gap: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: transparent;
}

.carousel-indicators button.active {
    background-color: var(--white);
}

/* Panel derecho */
.login-section {
    background: var(--white);
    display: flex;
    align-items: center;
}
.login-section-codigo {
    background: var(--white);
    display: flex;
    align-items: center;
    padding:20px
}

.login-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.company-name {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Formulario */
.form-label {
    font-weight: 500;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
}

.input-group-text {
    background: var(--gray-light);
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--gray-medium);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group .btn {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-spinner {
    display: inline-block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-blue);
}

.suggestions-btn {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestions-btn:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Modal de sugerencias */
.suggestion-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 15px;
    height: 100%;
    transition: transform 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-5px);
}

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

.suggestion-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.suggestion-content p {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin: 0;
    line-height: 1.4;
}

/* Contenedor principal */
.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.password-change-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 650px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Panel izquierdo */
.banner-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .banner-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.banner-brand {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.security-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.security-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.security-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

    .feature-item i {
        color: var(--success-green);
        font-size: 1.2rem;
    }

/* Panel derecho */
.form-section {
    background: var(--white);
    display: flex;
    align-items: center;
}

.form-content {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.main-logo {
    /*max-width: 120px;*/
    height: auto;
}

.company-name {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.form-subtitle {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Input Groups - Bordes unificados */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--gray-medium);
    background-color: var(--gray-light);
    border: 2px solid #e9ecef;
    border-radius: 10px 0 0 10px;
    transition: all 0.3s ease;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    border: 2px solid #e9ecef;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 0.75rem 1rem;
    padding-right: 90px;
    transition: all 0.3s ease;
}

.input-group > .btn {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

/* Estados de focus unificados */
.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control,
.input-group:focus-within .btn {
    border-color: var(--secondary-blue);
    box-shadow: none;
}

.input-group:focus-within .input-group-text {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--secondary-blue);
}

/* Icono de información */
.info-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
    font-size: 1rem;
    z-index: 5;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .info-icon:hover {
        color: var(--secondary-blue);
    }

/* Indicador de fortaleza de contraseña */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Colores de fortaleza */
.strength-weak .strength-fill {
    background-color: var(--danger-red);
    width: 25%;
}

.strength-fair .strength-fill {
    background-color: var(--warning-yellow);
    width: 50%;
}

.strength-good .strength-fill {
    background-color: var(--info-blue);
    width: 75%;
}

.strength-strong .strength-fill {
    background-color: var(--success-green);
    width: 100%;
}

.strength-weak .strength-text {
    color: var(--danger-red);
}

.strength-fair .strength-text {
    color: var(--warning-yellow);
}

.strength-good .strength-text {
    color: var(--info-blue);
}

.strength-strong .strength-text {
    color: var(--success-green);
}

/* Botones */
.change-password-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .change-password-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .change-password-btn.loading .btn-text {
        opacity: 0;
    }

    .change-password-btn.loading .btn-spinner {
        display: inline-block !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.suggestions-btn {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .suggestions-btn:hover {
        color: var(--primary-blue);
        transform: translateY(-1px);
    }

/* Modal de consejos */
.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 15px;
    height: 100%;
    transition: transform 0.3s ease;
}

    .tip-card:hover {
        transform: translateY(-5px);
    }

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

.tip-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.tip-content p {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin: 0;
    line-height: 1.4;
}

/* Estados de validación */
.form-control.is-invalid {
    border-color: var(--danger-red);
}

.form-control.is-valid {
    border-color: var(--success-green);
}

.input-group:has(.form-control.is-invalid) .input-group-text,
.input-group:has(.form-control.is-invalid) .btn {
    border-color: var(--danger-red);
}

.input-group:has(.form-control.is-valid) .input-group-text,
.input-group:has(.form-control.is-valid) .btn {
    border-color: var(--success-green);
}


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

.login-card {
    animation: slideInUp 0.6s ease-out;
}


/* Responsive */
@media (max-width: 991.98px) {
    .login-card {
        min-height: auto;
    }
    
    
    .banner-section {
        min-height: 300px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-icons {
        font-size: 2.5rem;
    }
    .security-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        max-width: 500px;
    }
    
    .login-card {
        border-radius: 15px;
    }

    .password-change-card {
        border-radius: 15px;
    }

    .banner-section {
        min-height: 250px;
    }

    .security-title {
        font-size: 1.5rem;
    }

    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-brand {
        font-size: 1.5rem;
    }
    
    .floating-logo img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .login-content {
        padding: 2rem 1.5rem;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
}