* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #1a0533; 
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow-x: hidden;
    z-index: 0;
}

body::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -20%;
    width: 140%;
    height: 60vh;
    background: linear-gradient(90deg, transparent 0%, #6a1b9a 20%, #8a2be2 50%, #6a1b9a 80%, transparent 100%);
    border-radius: 50% / 20%;
    transform: rotate(-15deg);
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 40vh;
    background: linear-gradient(90deg, transparent 0%, #4a1b7a 30%, #8a2be2 50%, #4a1b7a 70%, transparent 100%);
    border-radius: 50% / 30%;
    transform: rotate(10deg);
    filter: blur(100px);
    opacity: 0.4;
    z-index: -2;
    pointer-events: none;
}

.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    transition: opacity 0.5s ease;
}

.logo-top-center {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px; 
    margin-top: 20px; 
    z-index: 9999; 
}

.left-side {
    width: 50%;
    height: 100vh;
    position: relative;
    background-color: transparent; 
    z-index: 2; 
}

.img-float {
    position: absolute;
    object-fit: contain;
    z-index: 3; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)); 
}

.monito3 { top: 0; left: 0; width: 180%; max-width: 800px; transform: translate(-15%, -10%); }
.monito2 { top: 42%; right: -20%; width: 120%; max-width: 350px; }
.monito4 { bottom: 10%; left: -10%; width: 240%; max-width: 800px; }

.right-side {
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
    background-color: transparent; 
}

.form-content {
    width: 100%;
    max-width: 280px; 
    background-color: transparent; 
    padding: 0; 
    box-shadow: none; 
}

.texto-slogan {
    text-align: center; 
    margin-bottom: 30px; 
    margin-top: -220px;
}

.texto-slogan h2 {
    color: #ffffff; 
    font-size: 24px; 
    font-weight: 600; 
    line-height: 1.1; 
    letter-spacing: -0.5px; 
    margin: 0;
}

h1 { font-size: 34px; font-weight: 600; color: #ffffff; margin-bottom: 10px; letter-spacing: -1px; text-align: left; }
.subtitle { font-size: 15px; color: #e0c3fc; margin-bottom: 25px; text-align: left; }

.input-group { position: relative; margin-bottom: 12px; }

.input-icon-left {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: #888; stroke-width: 1.5;
}

.input-field {
    width: 100%; padding: 10px 10px 10px 38px; 
    border: 1px solid transparent; border-radius: 8px;
    font-size: 14px; outline: none;
    transition: border-color 0.2s;
    background-color: #fff; color: #111;
}

.input-field:focus { border-color: #7b2cbf; box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.3); }
.input-field::placeholder { color: #9ca3af; }

.input-icon-right {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: #888; cursor: pointer; stroke-width: 1.5;
}
.input-icon-right:hover { color: #7b2cbf; }

.terms-group {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 5px; margin-bottom: 15px;
    font-size: 12px; color: #e0c3fc; 
}

.terms-group input[type="checkbox"] {
    width: 16px; height: 16px; margin-top: 2px;
    cursor: pointer; accent-color: #7b2cbf; 
}

.terms-group a { color: #ffffff; text-decoration: underline; font-weight: 500; }

.btn {
    width: 100%; padding: 12px; border-radius: 30px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    text-align: center; text-decoration: none; display: block;
    transition: background-color 0.2s; border: none;
}

.btn-primary { background-color: #8a2be2; color: white; margin-bottom: 12px; }
.btn-primary:hover { background-color: #7b2cbf; }

.forgot-password {
    text-align: center; display: block; color: #e0c3fc;
    font-weight: 600; text-decoration: underline; font-size: 13px;
}
.forgot-password:hover { color: #ffffff; }

.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh; 
    z-index: 2; 
    pointer-events: none;
}

.monito-footer-izq { 
    position: absolute;
    bottom: -20px; 
    left: -60px; 
    width: 100vw; 
    max-width: 1200px; 
    z-index: 3; 
}

.monito-footer-der { 
    position: absolute;
    bottom: -20px; 
    right: -180px; 
    width: 86vw; 
    max-width: 1038px; 
    z-index: 2;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #2a0d4d; 
    padding: 40px 60px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(138, 43, 226, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #7b2cbf;
    min-width: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    border-top-color: #8a2be2;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #8a2be2;
    width: 0%;
    transition: width 0.1s linear;
}

.error-text {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.verification-container {
    display: none; 
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #1a0533;
    z-index: 100;
    justify-content: flex-start; 
    align-items: center;
    flex-direction: column;
    padding-top: 120px; 
    opacity: 0;
    transition: opacity 0.5s ease;
}

.verification-container::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -20%;
    width: 140%;
    height: 60vh;
    background: linear-gradient(90deg, transparent 0%, #6a1b9a 20%, #8a2be2 50%, #6a1b9a 80%, transparent 100%);
    border-radius: 50% / 20%;
    transform: rotate(-15deg);
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.verification-card {
    background-color: transparent;
    width: 100%;
    max-width: 350px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.verification-card h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
}

.verification-card p {
    font-size: 14px;
    color: #e0c3fc;
    margin-bottom: 30px;
    line-height: 1.4;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.code-input {
    width: 45px;
    height: 55px;
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #1a0533;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.code-input:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

.btn-verify {
    background-color: #8a2be2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-verify:hover {
    background-color: #7b2cbf;
}

.resend-text {
    display: block;
    margin-top: 20px;
    font-size: 13px;
    color: #e0c3fc;
    text-decoration: none;
}
.resend-text:hover { text-decoration: underline; }

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    body { flex-direction: column; overflow-y: auto; }
    .logo-top-center { width: 140px; top: 10px; }

    body::before {
        width: 200%;
        left: -50%;
        height: 40vh;
        filter: blur(60px);
    }

    .left-side { display: none; }

    .right-side {
        width: 100%; height: auto; min-height: 100vh;
        padding: 80px 20px 200px 20px;
        justify-content: center;
    }

    .form-content { 
        max-width: 280px; 
        width: 100%;
        margin: 0 auto; 
    }
    
    h1 { font-size: 28px; text-align: center; }
    .subtitle { font-size: 14px; margin-bottom: 20px; text-align: center; }
    
    .input-field { padding: 10px 10px 10px 38px; font-size: 14px; }
    .input-icon-left, .input-icon-right { width: 18px; height: 18px; }
    .input-icon-left { left: 12px; }
    .input-icon-right { right: 12px; }
    .terms-group { font-size: 12px; }
    .terms-group input[type="checkbox"] { width: 16px; height: 16px; }
    .btn { padding: 12px; font-size: 14px; }

    .footer-container { height: 30vh; }
    .monito-footer-izq { width: 100vw; max-width: 500px; left: -40px; }
    .monito-footer-der { width: 91vw; max-width: 475px; right: -120px; }

    .texto-slogan {
        margin-top: -120px !important; 
        font-size: 16px !important; 
        line-height: 1.2 !important;
        padding: 0 5px; 
    }

    .verification-container {
        padding-top: 100px; 
    }
    .code-inputs { gap: 5px; }
    .code-input { width: 40px; height: 50px; font-size: 20px; }
}