/* BBVA Netcash - Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #072146;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #0044CC;
    letter-spacing: -1px;
}

.btn-close {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #0044CC;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-close:hover {
    background: #f3f4f6;
}

/* Security banner */
.security-banner {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.security-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #072146;
}

.security-content svg {
    width: 16px;
    height: 16px;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 40px;
}

.login-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

/* Form section */
.form-section {
    flex: 1;
    max-width: 450px;
}

.welcome-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 42px;
    font-weight: bold;
    color: #072146;
    line-height: 1.15;
    margin-bottom: 30px;
}

/* Login form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px 45px 16px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: #072146;
    box-shadow: 0 0 0 2px rgba(7, 33, 70, 0.1);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s;
    background: white;
    padding: 0 4px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: #072146;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #072146;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* Virtual keyboard */
.virtual-keyboard {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0044CC;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
}

.virtual-keyboard:hover {
    text-decoration: underline;
}

.virtual-keyboard svg {
    width: 18px;
    height: 18px;
}

/* Submit button */
.btn-submit {
    width: 100%;
    background: #072146;
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #0a3a7a;
}

/* Forgot password */
.forgot-password {
    margin-top: 20px;
    text-align: center;
}

.forgot-password a {
    color: #0044CC;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Security recommendations */
.security-recommendations {
    margin-top: 30px;
}

.security-recommendations a {
    color: #0044CC;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.security-recommendations a:hover {
    text-decoration: underline;
}

/* Info section */
.info-section {
    flex: 1;
    max-width: 350px;
}

.info-box {
    background: #e8f4fc;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.info-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #072146;
}

.info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #072146;
}

.info-box strong {
    font-weight: 600;
}

/* Footer */
.footer {
    background: #0044CC;
    color: white;
    padding: 30px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.footer-lang {
    display: flex;
    gap: 15px;
}

.footer-lang a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-lang a.active,
.footer-lang a:hover {
    color: white;
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-content {
    text-align: center;
}

.bbva-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.loader-circle {
    width: 100%;
    height: 100%;
    border: 4px solid #e0e0e0;
    border-top-color: #0044CC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #072146;
    font-size: 18px;
    font-weight: 500;
}

/* Error page */
.error-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.error-icon svg {
    width: 40px;
    height: 40px;
    color: #dc2626;
}

.error-title {
    color: #072146;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-message {
    color: #4b5563;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-code {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 30px;
}

.btn-retry {
    background: #072146;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-retry:hover {
    background: #0a3a7a;
}

.help-text {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.help-text p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.help-text a {
    color: #0044CC;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .info-section {
        max-width: 100%;
    }
    
    .welcome-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .header-content,
    .security-content {
        padding: 15px 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .footer {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
