* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #fef6eb; /* Light beige background */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 0 0 0; /* Top padding */
}

.main-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    flex-grow: 1;
}

.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.security-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left;
    margin-bottom: 40px;
}

.security-title {
    color: #444b59;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.security-list {
    list-style: none;
    padding: 0;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.security-list li:last-child {
    margin-bottom: 0;
}

.security-list .icon-container {
    flex-shrink: 0;
    color: #8c96a3;
    margin-top: 3px;
}

.security-list p {
    color: #6d7278;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.security-list strong {
    color: #444b59;
    font-weight: 700;
}

/* Orange Help Footer */
.help-footer {
    width: 100%;
    background-color: #ec6608; /* Itaú secondary orange/reddish */
    color: #ffffff;
    padding: 25px 15px;
    text-align: center;
    margin-top: auto;
}

.help-footer p {
    font-size: 16px;
    margin-bottom: 10px;
}

.phone-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
}

.phone-info svg {
    margin-bottom: -2px;
}

.phone-info strong {
    font-weight: 700;
}

/* Volver Link */
.top-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.btn-volver {
    text-decoration: none;
    color: #008fd3;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.btn-volver .arrow {
    margin-right: 5px;
    font-weight: bold;
}

/* Logo */
.logo-container {
    margin-bottom: 20px;
}

.itau-logo {
    width: 60px;
    height: auto;
}

/* Welcome Text */
.welcome-text {
    margin-bottom: 30px;
    color: #555;
}

.welcome-text p {
    font-size: 16px;
    margin-bottom: 5px;
}

.welcome-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Form */
#login-form {
    text-align: left;
}

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

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #ff7f00;
}

/* Password wrapper for "Mostrar" link */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 70px;
}

.show-link {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: underline;
    color: #008fd3;
    font-size: 13px;
    font-weight: 500;
}

/* Button Ingresar */
.btn-ingresar {
    width: 100%;
    padding: 14px;
    background-color: #e0e0e0;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn-ingresar.active {
    background-color: #ff7f00;
}

/* Footer Links */
.footer-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forgot-password {
    text-decoration: underline;
    color: #008fd3;
    font-size: 14px;
    font-weight: 500;
}

.btn-new-user {
    text-decoration: none;
    color: #ff7f00;
    border: 1.5px solid #ff7f00;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-new-user:hover {
    background-color: #fffaf5;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card, .security-card {
        padding: 20px;
    }
    
    .main-container {
        max-width: 100%;
    }
}

/* Loading Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff7f00; /* Itaú Orange */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.modal-msg {
    color: #444b59;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff7f00; /* Itaú Orange */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
}

