:root {
    --azul-principal: #1e3c72;
    --azul-secundario: #2a5298;
    --azul-claro: #4a6fa5;
    --azul-fondo: #e8f4fd;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris-texto: #4a5568;
    --verde-exito: #48bb78;
}

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

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-secundario) 50%, var(--azul-claro) 100%);
    position: relative;
    overflow: hidden;
}

.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bg-shapes span {
    position: absolute;
    display: block;
    opacity: 0.06;
}

.bg-shapes span:nth-child(1) {
    width: 500px;
    height: 500px;
    background: #fff;
    top: -200px;
    left: -150px;
    border-radius: 50%;
}

.bg-shapes span:nth-child(2) {
    width: 700px;
    height: 700px;
    background: rgba(255,255,255,0.05);
    bottom: -300px;
    right: -250px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.bg-shapes span:nth-child(3) {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    top: 20%;
    right: -50px;
    border-radius: 50%;
}

.bg-shapes span:nth-child(4) {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    bottom: 10%;
    left: 5%;
    border-radius: 20%;
    transform: rotate(45deg);
}

.bg-shapes span:nth-child(5) {
    width: 350px;
    height: 180px;
    background: rgba(255,255,255,0.03);
    top: 5%;
    right: 10%;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.bg-shapes span:nth-child(6) {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.06);
    top: 15%;
    left: 30%;
    border-radius: 50%;
}

.bg-shapes span:nth-child(7) {
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.04);
    top: -50px;
    left: 40%;
    border-radius: 40% 60% 70% 30% / 40% 60% 40% 60%;
}

.bg-shapes span:nth-child(8) {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    top: 50%;
    left: 2%;
    border-radius: 15%;
    transform: rotate(30deg);
}

.bg-shapes span:nth-child(9) {
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.03);
    bottom: 5%;
    left: 45%;
    border-radius: 50%;
}

.bg-shapes span:nth-child(10) {
    width: 100px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    top: 40%;
    right: 2%;
    border-radius: 50%;
}

.bg-shapes span:nth-child(11) {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    bottom: -100px;
    left: 30%;
    border-radius: 25%;
    transform: rotate(20deg);
}

.bg-shapes span:nth-child(12) {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.06);
    top: 8%;
    left: 15%;
    border-radius: 50%;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.login-container {
    background: var(--blanco);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    overflow: hidden;
    min-height: 500px;
}

.login-decoration {
    flex: 1;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-decoration::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.login-decoration::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.decoration-content {
    text-align: center;
    color: var(--blanco);
    position: relative;
    z-index: 1;
}

.decoration-icon {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.decoration-icon i {
    font-size: 3.5rem;
    color: var(--blanco);
}

.decoration-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.decoration-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 280px;
}

.features-list {
    margin-top: 30px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.feature-item i {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.login-form-panel {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h1 {
    color: var(--azul-principal);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--gris-texto);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--gris-texto);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--azul-secundario);
    font-size: 1rem;
}

input[type="password"] {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--gris-claro);
}

input[type="password"]:focus {
    outline: none;
    border-color: var(--azul-secundario);
    background: var(--blanco);
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}

input[type="password"]::placeholder {
    color: #a0aec0;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    color: var(--blanco);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.4);
}

button:active {
    transform: translateY(0);
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid #feb2b2;
}

.error.show {
    display: flex;
}

.error i {
    font-size: 1.1rem;
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-text p {
    font-size: 0.85rem;
    color: #a0aec0;
}

.footer-text span {
    color: var(--azul-secundario);
    font-weight: 600;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .login-decoration {
        padding: 40px 30px;
    }
    
    .decoration-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .decoration-icon i {
        font-size: 2.5rem;
    }
    
    .decoration-content h2 {
        font-size: 1.5rem;
    }
    
    .features-list {
        display: none;
    }
    
    .login-form-panel {
        padding: 30px 25px;
    }
}