/* Espiral App — Login (index) */

body,
body * {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container-login {
    font-size: 16px;
}

.container-login-grid {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 40% 60%;
}

.container-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: white;
    transform: scale(0.875);
}

.icon-logo {
    width: 216px;
}

.container-info {
    background-image: url('images/backgrund_left.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    background-color: #f0f0f0;
}

.container-info-text {
    height: 100%;
    display: flex;
    align-items: center;
}

.container-info-text > div {
    color: #006bad;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
    max-width: 500px;
    padding-left: 3rem;
    padding-right: 3rem;
}

.title {
    font-size: 35px;
    color: #22c1ff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 300;
    margin-bottom: 2rem;
}

.input-blg {
    margin-bottom: 1.5rem;
    font-size: 16px;
    padding-bottom: 15px;
    position: relative;
    min-height: 90px;
}

.input-blg label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #333;
}

.input-blg input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid #b1b1b1;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #006bad;
    outline: none;
    box-sizing: border-box;
}

.input-blg input::placeholder {
    color: #999;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
}

.link-forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.link-forgot-password a {
    color: #22c1ff;
    text-decoration: none;
    font-size: 16px;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background-color: #22c1ff;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.register-text {
    font-size: 16px;
    color: #333;
    font-weight: 300;
    margin-top: 20px;
    text-align: left;
}

.register-text a {
    color: #22c1ff;
    text-decoration: none;
    font-size: 18px;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.error-message {
    font-size: 13px;
    color: red;
    position: absolute;
    bottom: -2px;
    left: 0;
    display: none;
    text-align: left;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e74c3c;
    color: white;
    padding: 21px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    white-space: nowrap;
    animation: slideUp 0.3s ease-out;
}

.toast-notification.show {
    display: flex;
}

.toast-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    overflow: hidden;
}

.toast-btn-small {
    background-color: white;
    color: black;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 8px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Overlay Login — espera post-login */
.overlay-login {
    position: fixed;
    inset: 0;
    background: rgba(173, 216, 255, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000;
}

.overlay-login.show {
    display: flex;
}

.overlay-login-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #006bad;
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .container-login-grid {
        grid-template-columns: 100%;
    }

    .container-info {
        display: none;
    }
}
