/* Login Page Styles - Match Screenshot Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.login-body, body {
    margin: 0;
    padding: 0;
    background: #1a2332 !important;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    width: 100vw;
}

.login-wrapper {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #1a2332 !important;
}

.wrapperGateway {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    width: 100%;
}

.wrapperGateway section {
    background: #13182e;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.brandingLogo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 120px;
    height: auto;
    filter: brightness(1.2);
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.language-icon {
    margin-right: 5px;
    font-size: 16px;
}

.language-text {
    font-weight: 500;
}

.gatewayForm {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    background: rgba(255, 255, 255, 1);
}

.form-control::placeholder {
    color: #999;
    font-size: 14px;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #333;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-signin {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
}

.btn-signin:active {
    transform: translateY(0);
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.remember-me label {
    color: white;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.login-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
}

/* Ensure full width coverage */
#render_body {
    width: 100vw !important;
    background: #1a2332 !important;
}

.body-container {
    width: 100vw !important;
    background: #1a2332 !important;
}

.mx-auto {
    width: 100vw !important;
    max-width: none !important;
    background: #1a2332 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wrapperGateway section {
        margin: 20px;
        padding: 30px 25px;
        width: calc(100% - 40px);
    }
    
    .logo img {
        max-width: 100px;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
        font-size: 12px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .wrapperGateway section {
        margin: 15px;
        padding: 25px 20px;
        width: calc(100% - 30px);
    }
    
    .logo img {
        max-width: 80px;
    }
    
    .login-footer {
        bottom: 15px;
    }
    
    .login-footer p {
        font-size: 10px;
        padding: 0 20px;
    }
}